Complete package.json

{
"Name": "the Hello World", // name attribute is the name of your module
"version": "0.0.1", // version must be npm rely on a node-semver module parses
"author": "Zhang three ", //" author "is one yard farming
" description ":" the first node.js program ", // a description to help people understand the role of your module, the search time is also useful.
"Mian": "index.js", // main attribute specifies the master file that the entry.
"Keywords": [ "Node.js", "JavaScript"], // a string array, so people present to search module
"repository": {// Code to specify a storage address, I want to help contribute code to the project of your people.
"Of the type": "git",
"url": "HTTPS: // path / to / url"
},
"License": "the MIT", // you should develop a protocol for your module, allowing users to know that they have how to use your permission module, and the module which limits the use of such BSD-3-Clause MIT a protocol or
"Engines": { "Node": "0.10.x"},
"bugs": {/ / fill out a bug submission address or a mailbox, the pit of your module to the people through here Tucao
"url": "https://github.com/luoshushu",
"Email": "[email protected]"
} ,
"Contributors": [{ "name ": " John Doe", "email": "[email protected] "}], // "contributors" AGRICULTURAL array is one yard.
"Scripts": {// specifies the command to run the script npm command-line abbreviation. For example: When entering npm run start, the command to be executed is a node index.js.
"Start": "The index.js Node"
},
"Dependencies": {// item specified operation depends module
"Express": "Latest",
"Mongoose": "3.8.3 ~",
"Runtime-Handlebars ":" ~ 1.0.12 ",
" Express3-Handlebars ":" 0.5.0 ~ ",
" the MD5 ":" 1.2.0 ~ "
},
" devDependencies ": {// modules required for the development project to specify
" bower ":" 1.2.8 ~ ",
" Grunt ":" 0.4.1 ~ ",
" Grunt-contrib-the concat ":" 0.3.0 ~ ",
" Grunt-contrib-jshint ":" ~ 0.7.2 ",
"Grunt-contrib-uglify": "0.2.7 ~",
"Grunt-contrib-Clean": "0.5.0 ~",
"Browserify": "2.36.1",
"Grunt-Browserify": "~ 1.3. 0 "
}
}

Guess you like

Origin www.cnblogs.com/TGNB/p/11404855.html