2016-11-30 10:05:38 -05:00
2016-11-30 10:05:38 -05:00
2016-11-30 10:05:38 -05:00
2016-11-29 12:14:10 -05:00
2016-11-30 10:05:38 -05:00
2016-11-29 15:23:00 -05:00
2016-11-30 10:05:38 -05:00

$ git clone https://github.com/jlongster/jscodefmt.git
$ cd jscodefmt
$ npm install -g .
$ jscodefmt file.js

It's most useful when integrated with your editor, so see editors to for editor support. Atom and Emacs is currently supported.

More docs on editor integration will come soon. To integrate in Emacs, add the following code. This will format the file when saved.

(require 'jscodefmt)
(add-hook 'js-mode-hook
          (lambda ()
            (add-hook 'before-save-hook 'jscodefmt-before-save)))
Languages
JavaScript 98.6%
CSS 0.9%
Vue 0.2%
HTML 0.2%
MDX 0.1%