Skip to content

Instantly share code, notes, and snippets.

@BretCameron
Last active August 22, 2019 14:11
Show Gist options
  • Save BretCameron/7375346e38d43c35bc5740d3bc029ae7 to your computer and use it in GitHub Desktop.
Save BretCameron/7375346e38d43c35bc5740d3bc029ae7 to your computer and use it in GitHub Desktop.
An example package.json file, for publishing an npm module.
{
"name": "my-npm-package",
"version": "1.0.0",
"description": "An example package for a tutorial.",
"keywords": [
"example",
"package",
"tutorial"
],
"homepage": "https://github.com/UserName/package-name",
"bugs": {
"url": "https://github.com/UserName/package-name/issues",
"email": "[email protected]"
},
"main": "index.js",
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/UserName/package-name.git"
},
"author": "Joe Bloggs <[email protected]> (your-website.com)",
"license": "MIT",
"private": false,
"engines": {
"node": ">=6.0.0"
},
"engineStrict": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment