What is purpose of the property “private” in package.json?

From the NPM docs on package.json:

private

If you set "private": true in your package.json, then npm will refuse to publish it.

This is a way to prevent accidental publication of private repositories.

Leave a Comment