Socket
Socket
Sign inDemoInstall

@algolia/jsfmt

Package Overview
Dependencies
61
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @algolia/jsfmt

`jsfmt` your code using Algolia's JavaScript style guide


Version published
Weekly downloads
5
increased by400%
Maintainers
2
Install size
5.61 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 08 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc