package.json field analysis

name: name of the package, must be unique, lowercase letters, numbers and underscores, can not contain spaces.

description: Brief Description of the package

version: version semantically identified specification version string

 

scripts: npm specified command-line abbreviation run script commands, such as start time specifies the command to run npm run start, to be executed. ( "Start": "node index.js")

 

main: Specifies the entry of the file is loaded, require ( 'moduleName') will load the document. The default value of this field is the root directory module index.js. Also you can modify.

 

keywords: Keywords array, typically used for search

maintainers: maintainer array, each element to include name, email (optional), Web (optional) field

contributors: Contributor array, the same number and maintainers, author of the package should be the first element of the array contributor

bugs: submit bug address, website or email address can be

licenses: License array, each element to be included type (license name) and url (link to the license text of the address) field

repositories: Warehouse Managed Address array, each element must type (type of warehouse, such as git), url (warehouse address) and the path (path relative to the warehouse, optional) field

dependencies: package production environment dependence, an associative array, the package name and version number of the composition

devDependencies: development environment package dependencies, an associative array, the name and version number of the newspaper package consisting of

Guess you like

Origin www.cnblogs.com/zcy9838/p/11610809.html