0.7.0 • Published 6 years ago

xo-init v0.7.0

Weekly downloads
9,002
License
MIT
Repository
github
Last release
6 years ago

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

0.7.0

6 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago