base-package-json
Basic package.json readable stream. Sets the minimum amount of properties to
satisfy npm
. Easy to extend, useful for code generators.
Installation
$ npm install base-package-json
Usage
const package = const through = package name: 'my-package'
API
package(opts)
Create a blank package.json
. By default it sets name
, version
, scripts
,
dependencies
and devDependencies
.
The following options are accepted:
- name: the module name. Defaults to
<name>
. - version: the module version. Defaults to
1.0.0
. - private: if the module is publishable. It should be set to
false
for applications. Defaults toundefined
(e.g. will not set).