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

痴心易碎 提交于 2019-12-17 10:35:19

问题


I'm learning node.js and express, I am wondering what is the property "private" in ./package.json file used for?


回答1:


Taken from this site, https://docs.npmjs.com/files/package.json#private

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.



来源:https://stackoverflow.com/questions/7314849/what-is-purpose-of-the-property-private-in-package-json

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!