2.0.1 • Published 5 years ago
create-petzl v2.0.1
create-petzl
Note: 99% of the work in this package was done by @sindresorhus who does amazing things for the JS community. Be sure to check out his work.
Add petzl to your project
CLI
$ npm init petzl [options]
API
$ npm install create-petzl
Usage
const createPetzl = require("create-petzl");
(async () => {
await createPetzl();
})();
createPetzl(options?)
Returns a Promise
.
options
Type: object
cwd
Type: string
Default: process.cwd()
Current working directory.
args
Type: string[]
Default: CLI arguments (process.argv.slice(2)
)
For instance, with the arguments ['--foo', '--bar']
, the following will be put in package.json:
{
"name": "awesome-package",
"scripts": {
"test": "petzl --foo --bar"
}
}
2.0.1
5 years ago