Quantcast
Channel: Code Chewing » Node JS
Viewing all articles
Browse latest Browse all 6

Set your node js project to private

$
0
0

You can easily publish a node js project by typing:

npm publish

But if you want to ensure that a project doesn’t get published to the npm then you need to add the private property with a value of true into the package.json file:

{
  "name": "my-project",
  "version": "0.0.1",
  "private": "true",
  "dependencies": {
    "someDependency": "0.5.0"
  }
}

If npm publish is ever attempted – the node js project will not get published. Avoiding any unwanted and accidental publication!


Viewing all articles
Browse latest Browse all 6

Trending Articles