New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

create-xo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-xo

Add XO to your project

Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
24
-22.58%
Maintainers
1
Weekly downloads
 
Created
Source

create-xo Build Status

Add XO to your project

CLI

$ npm init xo [options]

Example:

$ npm init xo --space --no-semicolon

API

Usage

const createXo = require('create-xo');

(async () => {
	await createXo();
})();

createXo(options?)

Returns a Promise.

options

Type: object

cwd

Type: string
Default: process.cwd()

Current working directory.

args

Type: string[]
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"
		]
	}
}

Keywords

init

FAQs

Package last updated on 26 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts