package.json: 包的描述文件 bin: 用于存放可执行的二进制文件的目录 lib: 用于存放javascript的目录 doc: 用于存放文档的目录 test: 用于存放单元测试用例的代码 node_modules: 第三方模块 README.md: 关于描述
{ "name": "express", //包名由小写字母和数字组成,包含._-,但不允许空格,包名须是唯一的 "description": "Sinatra inspired web development framework", //包介绍 "version": "4.4.4", //版本号,用于版本控制,一般是major.minor.revision格式 "author": { //包作者 "name": "TJ Holowaychuk", "email": "[email protected]" }, "contributors": [ //贡献者列表,每个维护者由name、email和web组成 { "name": "Aaron Heckmann", "email": "[email protected]" }, { "name": "Ciaran Jessup", "email": "[email protected]" }, { "name": "Douglas Christopher Wilson", "email": "[email protected]" }, { "name": "Guillermo Rauch", "email": "[email protected]" }, { "name": "Jonathan Ong", "email": "[email protected]" }, { "name": "Roman Shtylman" } ], "keywords": [ //关键词数组,有利于用户快速查找到 "express", "framework", "sinatra", "web", "rest", "restful", "router", "app", "api" ], "repository": { //托管源代码的位置 "type": "git", "url": "git://github.com/visionmedia/express" }, "license": "MIT", //许可证列表 "dependencies": { //当前包所依赖的包列表 "accepts": "~1.0.5", "buffer-crc32": "0.2.3", "debug": "1.0.2", "escape-html": "1.0.1", "methods": "1.0.1", "parseurl": "1.0.1", "proxy-addr": "1.0.1", "range-parser": "1.0.0", "send": "0.4.3", "serve-static": "1.2.3", "type-is": "1.2.1", "vary": "0.1.0", "cookie": "0.1.2", "fresh": "0.2.2", "cookie-signature": "1.0.3", "merge-descriptors": "0.0.2", "utils-merge": "1.0.0", "qs": "0.6.6", "path-to-regexp": "0.1.2" }, "devDependencies": { //一些模块只有在开发的时候需要依赖,用于提示后续开发者 "after": "0.8.1", "istanbul": "0.2.10", "mocha": "~1.20.1", "should": "~4.0.4", "supertest": "~0.13.0", "connect-redis": "~2.0.0", "ejs": "~1.0.0", "jade": "~1.3.1", "marked": "0.3.2", "multiparty": "~3.2.4", "hjs": "~0.0.6", "body-parser": "~1.4.3", "cookie-parser": "~1.3.1", "express-session": "~1.5.0", "method-override": "2.0.2", "morgan": "1.1.1", "vhost": "2.0.0" }, "engines": { //支持的javascript引擎列表 "node": ">= 0.10.0" }, "scripts": { //脚本说明对象 "prepublish": "npm prune", "test": "mocha --require test/support/env --reporter dot --check-leaks test/ test/acceptance/", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/", "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/" }, "bugs": { //反馈bug的地址 "url": "https://github.com/visionmedia/express/issues" }, "homepage": "https://github.com/visionmedia/express" //主页地址 }