Extended project definition

suggest change

Some of the additional attributes are parsed by the npm website, such as repository, bugs, and homepage, and shown in the infobox for this package.

{
  "main": "server.js",  
  "repository" :  {
    "type": "git",
    "url": "git+https://github.com/<accountname>/<repositoryname>.git"
  },
  "bugs": {
    "url": "https://github.com/<accountname>/<repositoryname>/issues"
  },
  "homepage": "https://github.com/<accountname>/<repositoryname>#readme",
  "files": [
    "server.js", // source files
    "README.md", // additional files
    "lib" // folder with all included files
  ]
}
Field Description
main Entry script for this package. This script is returned when a user requires the package.
repository Location and type of the public repository
bugs Bug tracker for this package (for example GitHub)
homepage Homepage for this package or the general project
files List of files and folders which should be downloaded when a user does an npm install <packagename>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents