This package is a helper module for creating programs that compile file to package.json
and invoke npm
- Node.js ≥ 6.0.0 and npm
const packageAlt = require('package-alt')
packageAlt(options)
- Type: Object
- Optional
- Type: String
- Optional
- Default to
'npm'
- Type: Boolean or String
- Optional
- Default to
true
- Type: Object
- Mandatory
- Type: String
- Useless if
options.entry.base
is provided - Default to
package
- Type: String
- Useless if
options.entry.base
is provided - Default to
.json
- Type: String
- Optional
- Default to
options.entry.name + options.entry.ext
Read index.js