This is what semicolon indented code looks like:
module.exports = function (data, force) {
;;var opts = {
;;;;preset: 'default',
;;;;indent: {
;;;;;;value: ';;',
;;;;;;ObjectExpression: force ? 1 : 0
;;;;}
;;}
;;return esformatter.format(data + '\n', opts)
}
$ npm install -g semicolon-indent
$ semicolon-indent index.js > index2.js
use stdin
$ cat index.js | semicolon-indent > index2.js
Copyright © 2015 Christoph Witzko