Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geek/node-style

Node.js Standard Style
https://github.com/geek/node-style

Last synced: 10 days ago
JSON representation

Node.js Standard Style

Awesome Lists containing this project

README

        

# Node.js Standard Style

* Inspired and borrowed from [belly-button](https://github.com/continuationlabs/belly-button)*

[![Build Status](https://secure.travis-ci.org/geek/node-style.svg)](http://travis-ci.org/geek/node-style)

### Install

```sh
npm install -g node-style
```

### Usage

Run on the current directory and lint files to make sure they follow the node.js
core style rules.

```sh
node-style
```

#### --fix (-f)

```sh
node-style -f
```

Will fix linting issues that it finds. This won't fix everything, but will
definitely help when you are styling a large codebase.

#### --input (-i)

```sh
node-style -i lib/**.js
```

Will only run linting on the paths that match the input. You can have multiple
inputs if you want to lint multiple patterns.