UNPKG

1.66 kBMarkdownView Raw
1# snazzy [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
2
3[travis-image]: https://img.shields.io/travis/feross/snazzy/master.svg
4[travis-url]: https://travis-ci.org/feross/snazzy
5[npm-image]: https://img.shields.io/npm/v/snazzy.svg
6[npm-url]: https://npmjs.org/package/snazzy
7[downloads-image]: https://img.shields.io/npm/dm/snazzy.svg
8[downloads-url]: https://npmjs.org/package/snazzy
9[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
10[standard-url]: https://standardjs.com
11
12### Format [JavaScript Standard Style](https://github.com/feross/standard) as Stylish (i.e. snazzy) output
13
14Converts "compact" text from a linter to "stylish" (i.e. snazzy) output.
15
16![after](img/after.png)
17
18Compared to before:
19
20![before](img/before.png)
21
22## install
23
24```
25npm install -g snazzy
26```
27
28## usage
29
30Pipe "compact" text into the `snazzy` command to get back pretty results:
31
32```bash
33$ standard --verbose | snazzy
34```
35
36## note about version 7.0.0
37
38`standard` is no longer bundled with snazzy. You must install `standard` manually
39alongside `snazzy`.
40
41Run `npm install standard --save-dev` to get a copy of `standard`, then run
42`standard | snazzy` where you previously used to run `snazzy`.
43
44This way requires more steps, but it's better. The user now controls the exact
45version of `standard` that is used. And for users who were piping into `snazzy` all
46along, this means a quicker install since an extra copy of `standard` will not get
47installed.
48
49## license
50
51MIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org).