Observed since 20 Oct, 18:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Functional/composable boilerplate generator for scaffolding modules
Functional/composable boilerplate generator for scaffolding modules
$ npm install --save 212
var Boilerplate = require('212')
var boilerplate = Boilerplate({
'package.json': function (data) {
return {
name: data.name,
version: '0.0.0'
}
},
'.travis.yml': function (data) {
return {
langugage: 'node_js',
node_js: ['6']
}
}
})
boilerplate({name: 'my-great-package'}, function (err) {
// Writes package.json, .travis.yml
})
Boilerplate(files) -> functionReturns a boilerplate function that can be called to write the configured boilerplate output.
Required
Type: object
An object containing key/value pairs of filenames and values. Values can either be:
Files with .json or .yml extensions will be automatically formatted. All other values will be stringified.
boilerplate(data, [options], callback -> undefinedRequired
Type: object
Data to pass to file generator functions.
Type: string
Default: process.cwd()
The working directory to write boilerplate files to.
Required
Type: function
Arguments: err
MIT © Ben Drucker
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 23 Jun 2016 | 14 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d3c408a221616bf427c2d510559ab2ab7afcaf64dc7a9180968bbaba5f2a8030