Template:NPM package

{{{1}}}

Template documentation

Copy and paste this template

With only the required parameters

{{NPM package|}}

With all parameters including optional parameters

{{NPM package||version=|text=}}

Examples

  • Linking to eslint-config-wikimedia: {{NPM package|eslint-config-wikimedia}}
    Output: eslint-config-wikimedia
  • Linking to eslint-config-wikimedia, version 0.17.0: {{NPM package|eslint-config-wikimedia|version=0.17.0}}
    Output: eslint-config-wikimedia
  • Linking to eslint-config-wikimedia, with a custom label: {{NPM package|eslint-config-wikimedia|text=Wikimedia ESLint}}
    Output: Wikimedia ESLint

Template data

Allows linking to NPM packages on the official NPM website

Template parameters

ParameterDescriptionTypeStatus
Package name1

Name of the NPM package

Example
eslint-config-wikimedia
Stringoptional
Package versionversion

Software version of the NPM package

Example
0.17.0
Stringoptional
Texttext

Label of the link to the NPM package

Stringoptional