2.0.0 • Published 9 years ago
asjson v2.0.0
asjson
Convert into json file
Installation
$ npm install asjson --saveUsage
'use strict'
const asjson = require('asjson')
const co = require('co')
co(function * () {
yield asjson('*/index.js', {
cwd: 'src',
out: 'dest'
})
}).catch((err) => console.error(err))Signature
asjson(pattern, options) -> Promise
Params
| Name | Type | Description |
|---|---|---|
| pattern | string | Glob file name pattern |
| options | Object | Optional settings |
| options.cwd | string | Current working directory path |
| options.out | string | Output directory path |
License
This software is released under the MIT License.