@algolia/jsfmt

1.2.0 • Public • Published

jsfmt

jsfmt your code using Algolia's JavaScript style guide.

Based on esformatter. Ths is not a fork of rdio/jsfmt.

Mostly done because there was not a single tool that could "reformat all the JavaScript but node_modules/ or dist/ ..". Which is what you want 100% of the time.

How to use

npm install -g @algolia/jsfmt
# or locally
npm install @algolia/jsfmt --save-dev
cd unstyled-JavaScript-project

# rewrite *.js recursively, ignoring node_modules
jsfmt

# rewrite only a folder (recursively)
jsfmt folder

# show the diff, without rewriting
jsfmt --diff

Readme

Keywords

none

Package Sidebar

Install

npm i @algolia/jsfmt

Weekly Downloads

2

Version

1.2.0

License

ISC

Last publish

Collaborators

  • bobylito
  • pixelastic
  • redox
  • vvo