Nemo's Parental Misguidance
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

xo-init

0.7.0 • Public • Published

xo-init Build Status

Add XO to your project

Install

$ npm install xo-init

Usage

const xoInit = require('xo-init');
 
xoInit().then(() => {
    console.log('done');
});

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:

{
    "name": "awesome-package",
    "xo": {
        "space": true,
        "envs": ["node"]
    }
}

CLI

Install XO globally $ npm install --global xo and run $ xo --init [<options>].

License

MIT © Sindre Sorhus

install

npm i xo-init

Downloadsweekly downloads

9,191

version

0.7.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability