xo-init
Add XO to your project
Install
$ npm install xo-init
Usage
const xoInit = ; ;
API
xoInit([options])
Returns a Promise
.
options
cwd
Type: string
Default: process.cwd()
Current working directory.
args
Type: Array
Default: CLI arguments (process.argv.slice(2)
)
Options to put in XO's config in package.json
.
For instance, with the arguments ['--space', '--env=node']
the following will be put in package.json
:
CLI
Install XO globally $ npm install --global xo
and run $ xo --init [<options>]
.
License
MIT © Sindre Sorhus