2.0.0 • Published 7 years ago

asjson v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

asjson

Build Status npm Version JS Standard

Convert into json file

Installation

$ npm install asjson --save

Usage

'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

NameTypeDescription
patternstringGlob file name pattern
optionsObjectOptional settings
options.cwdstringCurrent working directory path
options.outstringOutput directory path

License

This software is released under the MIT License.

Links

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago