Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/standard/snazzy

Format JavaScript Standard Style as Stylish (i.e. snazzy) output
https://github.com/standard/snazzy

browser development ecmascript eslint formatter javascript lint nodejs snazzy standard style

Last synced: about 1 month ago
JSON representation

Format JavaScript Standard Style as Stylish (i.e. snazzy) output

Awesome Lists containing this project

README

        

# snazzy [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

[travis-image]: https://img.shields.io/travis/feross/snazzy/master.svg
[travis-url]: https://travis-ci.org/feross/snazzy
[npm-image]: https://img.shields.io/npm/v/snazzy.svg
[npm-url]: https://npmjs.org/package/snazzy
[downloads-image]: https://img.shields.io/npm/dm/snazzy.svg
[downloads-url]: https://npmjs.org/package/snazzy
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com

### Format [JavaScript Standard Style](https://github.com/feross/standard) as Stylish (i.e. snazzy) output

Converts "compact" text from a linter to "stylish" (i.e. snazzy) output.

![after](img/after.png)

Compared to before:

![before](img/before.png)

## install

```
npm install -g snazzy
```

## usage

Pipe "compact" text into the `snazzy` command to get back pretty results:

```bash
$ standard --verbose | snazzy
```

## note about version 7.0.0

`standard` is no longer bundled with snazzy. You must install `standard` manually
alongside `snazzy`.

Run `npm install standard --save-dev` to get a copy of `standard`, then run
`standard | snazzy` where you previously used to run `snazzy`.

This way requires more steps, but it's better. The user now controls the exact
version of `standard` that is used. And for users who were piping into `snazzy` all
along, this means a quicker install since an extra copy of `standard` will not get
installed.

## license

MIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org).