Next: , Up: Creating a packagejson File   [Index]


3.2.1.1 Package Fields

A package.json file must contain "name" and "version" fields.

name

The "name" field contains your package’s name, and must be lowercase and one word, and may contain hyphens and underscores.

version

The "version" field must be in the form ‘x.x.x’ and follow the semantic versioning guidelines.

author’ ::=

If you want to include package author information in "author" field, use the following format (email and website are both optional):

Your Name <email@example.com> (http://example.com)