Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/geek/node-style
- Owner: geek
- License: bsd-3-clause
- Created: 2016-03-05T21:36:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T17:15:11.000Z (almost 8 years ago)
- Last Synced: 2024-07-05T06:54:13.332Z (4 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-eslint - Node.js Standard Style - Node.js core config. (Preconfigured Configs with ESLint Set up / Other Configs)
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.