xo-init
Add XO to your project
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install xo-init 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.7.0                                ...           latest (a year ago)

15 Versions

  • 0.7.0                                ...           a year ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.6                                ...           4 years ago
  • 0.3.5                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 16
This Week 16
This Month 695
Last Day 15
Last Week 354
Last Month 827
Dependencies (8)
Dev Dependencies (4)
Dependents (4)

Copyright 2014 - 2016 © taobao.org |