how to npm init create private: true by default?

is there any way (npm set config, …) to let npm init add the property “private” to package.json by default?

I do not find direct support, it is not one of the listed properties for init:

$ npm config ls -l | grep init
init-author-email = ""
init-author-name = ""
init-author-url = ""
init-license = "ISC"
init-module = "/Users/john/.npm-init.js"
init-version = "1.0.0"

I did find:

Thanks - that can be used as simple as “npm init private”! Nice.

Unfortunately it’s missing other settings like author name a.s.o. :-(

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.