{"_id":"jsfmt","_rev":"56-739e697c520fb1ad1f27fba4fb3b4f73","name":"jsfmt","description":"gofmt for javascript","dist-tags":{"latest":"0.5.3"},"versions":{"0.0.2":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.2","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}],"dependencies":{"falafel":"*","esprima":"*","escodegen":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.2","dist":{"shasum":"bcf5ea7de782cb9aee544b6b6a3ac90971ef6708","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.2.tgz","integrity":"sha512-RfCrl0wgbf9mxrgTU+K8/el/MhoeYb6l6wbRtjT2wwcX2PwTlzbGM8pM+FVjDkkiSFpMIpH/XYRJ+zC60one2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhm3/1xqd0kGOUALdTffO3SE7yR6kazybifQN5zvIpeQIhAPn1P3RxJA8GJT/xrjmhN4e4NLe/+qj1a4q3ubg57UvE"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.3":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.3","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","esprima":"*","escodegen":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.3","dist":{"shasum":"6436366b359890c8239e18bb2ad52d88c534d2b9","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.3.tgz","integrity":"sha512-wGj35xsPbbJVuzwHVmFtT7WnvWK14V5nwYr9mqv4RDJ5gKZgzai/+voTkxD1vgm7SsWffp87/YEsvbaPcRVLaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIeOYa3bns92RxILyCrYci9/7fVQMUWkMsmyBunnb4vAiEA7psUUhKoa4hD3HyXfnBV3h75VbKSdmHY0nqe5ELWaIs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.4":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.4","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","esprima":"*","escodegen":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.4","dist":{"shasum":"397073adc36961ba8b0b74776f97529f649af8c8","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.4.tgz","integrity":"sha512-YU5DJb2shJXZJWcpOvtZtxoIEov/y3Y71c8WXNtgMvHclccQvLW8G0LAajhDNCdavzfh5GehzNVMC3TMcLVuhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkZuye9RG0DtaE6Tk6wMJcTHgCdbUM+khVE65jxZqIGAiAkDbT2Bw9UGjCczj6igZwUxO5MHgUlGkalEc7mOQqxGA=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.5":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.5","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","esprima":"*","escodegen":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.5","dist":{"shasum":"cde5da9f00f325d0dcaf812d465f17f4f4d2cde4","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.5.tgz","integrity":"sha512-ujIBkNMgalmF+0jRgQkk/XYQI/A/yN9cPnTz9gOurffGoD95teamqHFX21+Z5mw87BOtxaKBB80nW+SvfjVMZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGawHJl0P8I3tF90ek9MXRhQTan3w8252rJD+zSXsk/9AiEA7gg5D1OKogUsdPciB1ZlxGrsGtfer8SVU6mjVYJ8rW4="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.6":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.6","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","esprima":"*","escodegen":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.6","dist":{"shasum":"7599607eba33aabd96ec1638d7eb3aa5fa37bf33","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.6.tgz","integrity":"sha512-GNK9wkTkctyh/bTmSyxBXF3pcUAv09gd30LtQFdWGfACKRrIuSzsprnsyev2zyJSl+OB0t3sKxEDUlZy9KpGeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpTxUxkQI/fI8bPJCsBdfCfUbTKQmV1jMkHDxUKP4pYAiEA6ZMNJndnjxpY5vmGxQ9Wt5V6Mwwe+yDwdNR/Rlqu4Ig="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.7":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.7","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.7","dist":{"shasum":"fc431cde10521ac8811f20e54b6d7a14deee4a8c","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.7.tgz","integrity":"sha512-EkY91+LWDDRt4rGEjRcVfV039JMUnwRNfWDuDGDoVt48KwcLoM9WxGBUyPQVU6X3iPLFMxNRasKjzVo+koJeIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyLcvlKqjuq10E4F1Qa2C6PEON1kTWeogBRMHquQLO5AiBYydohjtRUoG7Uz64SCKLdeySoNDmX8tng5lzzvGBdsA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.8":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.8","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.8","dist":{"shasum":"75d7d5b2e6f10f57626129bfc25b27a659808237","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.8.tgz","integrity":"sha512-D0pFAuplEDUm1CIaIOcWVu09JLqUYZP68hN8LJ2Az4UAKpc9le6yyrL0jhNSyHf28UB7RmcslUyIoFNjAxhwpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/cZbRb5Y0zAUuJScprIA+XGGDm/uDHRGMLBgo6Z7sZAiAHv/49uz3nX9SClThi9UAirawKIXzUF6Bnd7L9T2p1hQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.0.9":{"name":"jsfmt","description":"gofmt for javascript","version":"0.0.9","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.0.9","dist":{"shasum":"ea56d2c355a710aa5b80281e2d3d968dc45a2a34","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.0.9.tgz","integrity":"sha512-6OGEPv73ca2WpvFaMq17fmS2Wgi6JYXzSkwnVcz1NBi5rH6g6PBUgoC0PXL187Q7660g3X8l6e1apyL4VDK+/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbcdLYGGEvUZtuM2tC9Ws6l/J7rbgLdOxtzLy/bn8rSgIhAI1LB5J2e11UBVPPta1V6oj0yQI1XFLU0flPpDYDjTR9"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.1.0":{"name":"jsfmt","description":"gofmt for javascript","version":"0.1.0","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.1.0","dist":{"shasum":"633c90237ded431f920d81ca124147ffa95a8c56","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.1.0.tgz","integrity":"sha512-dIVS+T0ua1SCBhyMRyOZnlfBrJ6fFgf2qG6RuNDi+7hu1OcE1QTn1tD3te43bv+PAKK2JAdMShQcTSVbZ14pfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfL7Y8i5DbfIticYQWw3tscZUoKr5jGc2z4h/xP+VCMAIhAKfh7Ftr5YGpL7yHDq4EVAojtWDGp1K1huB6+Kt31d9Z"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.1.1":{"name":"jsfmt","description":"gofmt for javascript","version":"0.1.1","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.1.1","dist":{"shasum":"94ec204da3e1629dc2cd91b3989c89886cc06be1","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.1.1.tgz","integrity":"sha512-+rAbwkHmSC0BEqiEqn3CpWUD6lEF0U8FdRxCXSrI817VAerNeYsq96NAV/1TQxiUqHTTn+gnXH3u+KB1AKcE0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAebp4FOse2RRGZJcAKZF4Vvi0IeHymKpqCPBKOOMo3lAiAUDB2XavL7HS/WwM1exaK42h/IcayNcueF9Ckl1goxag=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.2.0":{"name":"jsfmt","description":"gofmt for javascript","version":"0.2.0","homepage":"https://github.com/rdio/jsfmt","main":"index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"*","rocambole":"*","esformatter":"*","escodegen":"*","esprima":"*","underscore":"*","tmp":"*","minimist":"*","rc":"*"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"_id":"jsfmt@0.2.0","dist":{"shasum":"fdf7a6624dba450d9e7be2df829dfb168506bd66","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.2.0.tgz","integrity":"sha512-FLYNNj9jEM9GTg16dO2aqEF8A+9azC5+6FVfLUfW/vBQ2/Vc99hvPrZYixrCDQTTt83f714y9cHG83LAStGwHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGp0RI+kQOAxwQ/i3ys7KZjHyNUiqMdfHH1PnbRgQHOEAiArexY31PfnWcEhBian4Qvfqz3kBDTp5AputYx5jC476Q=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.3.0":{"name":"jsfmt","description":"gofmt for javascript","version":"0.3.0","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"^0.3.1","rocambole":"^0.3.3","esformatter":"^0.1.1","escodegen":"^1.3.2","esprima":"^1.2.2","underscore":"^1.6.0","tmp":"^0.0.23","docopt":"^0.4.0","rc":"^0.3.5","glob":"^4.0.0"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format"],"devDependencies":{"mocha":"^1.18.2","should":"^3.3.1","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0","grunt-exec":"~0.4.5","mocha-lcov-reporter":"0.0.1","jscoverage":"~0.3.8","coveralls":"~2.8.0"},"_id":"jsfmt@0.3.0","dist":{"shasum":"a16c2503b297774f401975b9acd2562b33fc1922","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.3.0.tgz","integrity":"sha512-OypKpR+D8kJHijRO+aR2onVkA5SptFLZgMm32DToXEMBMbB8da3QhHVOwJAaf9CEqQTTkX2bEZntLPOSMcgh8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2FifDIbL133GR8Tn6C90C6W2XmfWrUyQ0ZBAXwTxVuAiEAj2G92NeONx7CpPX3B4dWyYoXB7L1pmqsuuIBNJkPtEs="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.3.1":{"name":"jsfmt","description":"gofmt for javascript","version":"0.3.1","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"~0.3.1","rocambole":"~0.3.3","esformatter":"~0.1.1","escodegen":"~1.3.2","esprima":"~1.2.2","underscore":"~1.6.0","tmp":"~0.0.23","docopt":"~0.4.0","rc":"~0.4.0","glob":"~4.0.0"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0","grunt-exec":"~0.4.5","mocha-lcov-reporter":"0.0.1","jscoverage":"~0.3.8","coveralls":"~2.8.0"},"_id":"jsfmt@0.3.1","dist":{"shasum":"f3ca6931a98a4747e97d913af0bee6377df571b9","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.3.1.tgz","integrity":"sha512-bc2wYhchcFfh/QdldYsodaKpGQorDDIuyXWP2WRDhjRhV8cA/R3VGoVVVduzXIaO4u7iEIv0Pol3uHHnAfwwTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEt1lMeVWX71pz5Ksf5omgX/ifsffxZa2JVvKfE0zJjDAiBwB/UfoSW/NNoZVqUJhxbSqB8WX0UOW6O26J7NDUpwZA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.3.2":{"name":"jsfmt","description":"gofmt for javascript","version":"0.3.2","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"falafel":"~0.3.1","rocambole":"~0.3.3","esformatter":"~0.1.1","escodegen":"~1.3.2","esprima":"~1.2.2","underscore":"~1.6.0","tmp":"~0.0.23","docopt":"~0.4.0","rc":"~0.4.0","glob":"~4.0.0"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0","grunt-exec":"~0.4.5","mocha-lcov-reporter":"0.0.1","jscoverage":"~0.3.8","coveralls":"~2.8.0"},"_id":"jsfmt@0.3.2","dist":{"shasum":"0924e6cb95ef107b8878b4c0d0ea4eff3d984edc","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.3.2.tgz","integrity":"sha512-+SUWipFY9zLi5i1h4za/+qixniUpL1uDz2q2l+RGFO8S1AzIRLRGW5al/DzJ6EV04kfwS79LIjb0XbKKrEsXPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2BTqt5zMbkqvGUrnHs+q+2Mk7TEyh71KE5S45cyz2MAiEA1Bi8FG3Q1Z89P45U+GthF1eBBAvIfSiqZXyYhXaTKMA="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"}},"0.4.0":{"name":"jsfmt","description":"gofmt for javascript","version":"0.4.0","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"docopt":"~0.4.0","escodegen":"~1.3.2","esformatter":"~0.4.1","esformatter-braces":"~0.1.4","esprima":"ariya/esprima#harmony","falafel":"~0.3.1","glob":"~4.0.0","rc":"~0.5.0","rocambole":"~0.3.3","tmp":"~0.0.23","underscore":"~1.6.0"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0","grunt-exec":"~0.4.5","mocha-lcov-reporter":"0.0.1","jscoverage":"~0.3.8","coveralls":"~2.8.0"},"gitHead":"0e7af07e0055531328821fd96bb3ad6cae1dfeef","_id":"jsfmt@0.4.0","_shasum":"3b0d85d475437adf02192d2aee4f4eeac902d27e","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"3b0d85d475437adf02192d2aee4f4eeac902d27e","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.4.0.tgz","integrity":"sha512-WkxmwzVmMdcqwZ9dx859K9g8Ti+73A6YvBumq8MjgvnfLUxWnTAjFvRe9aD+lSM+fHuOjW1rTBCwnjbEowmBEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDDd9zyC0JgmFWouNWjuSwO6co/sQGDxVffXt5mxBdaAiEA37rkUvRuJ8sc4+xddvIHt0je9lw94yA5i3jYnitWuSA="}]}},"0.4.1":{"name":"jsfmt","description":"gofmt for javascript","version":"0.4.1","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"docopt":"~0.4.0","escodegen":"~1.3.2","esformatter":"~0.5.0","esformatter-braces":"~0.1.4","esformatter-var-each":"~1.0.0","esprima":"git+https://github.com/ariya/esprima#harmony","falafel":"~0.3.1","glob":"~4.0.0","rc":"~0.5.0","rocambole":"~0.3.3","tmp":"~0.0.23","underscore":"~1.6.0"},"repository":{"type":"git","url":"https://github.com/rdio/jsfmt"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-mocha-test":"~0.11.0","grunt-exec":"~0.4.5","mocha-lcov-reporter":"0.0.1","jscoverage":"~0.3.8","coveralls":"~2.8.0"},"gitHead":"240bd97caebe494becd435c6945f30c9755a7a1f","_id":"jsfmt@0.4.1","_shasum":"ae9cbe1bdc1fe3e655191dd87e634f2557cc2d2b","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"ae9cbe1bdc1fe3e655191dd87e634f2557cc2d2b","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.4.1.tgz","integrity":"sha512-xTH5D9FeUR8XsHzNpOhg13r+LIOHzNKdAEJ1qHtP47Kh0bzEbO9J3GTDbtnSR1hKGV+eZmGCo/njrFvV0EzFfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAh0RphdVQGZ96OjIeSDMNMQrnkzf2c97xPOEPCBiscaAiBldnEuntjwIyBm/u8oWIifYTpeP5/uPR6cqfKtaMV2xg=="}]}},"0.5.0":{"name":"jsfmt","description":"gofmt for javascript","version":"0.5.0","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"deep-extend":"~0.3.2","docopt":"~0.4.0","escodegen":"~1.6.1","esformatter":"~0.7.2","esformatter-braces":"~1.0.0","esformatter-var-each":"~1.0.0","esprima":"~2.4.0","falafel":"~0.3.1","glob":"~4.4.0","rc":"~0.6.0","rocambole":"~0.5.0","tmp":"~0.0.23","underscore":"~1.8.0"},"repository":{"type":"git","url":"git+https://github.com/rdio/jsfmt.git"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"coveralls":"~2.8.0","grunt":"~0.4.5","grunt-contrib-jshint":"~0.10.0","grunt-exec":"~0.4.5","grunt-mocha-test":"~0.11.0","jscoverage":"~0.3.8","json-stable-stringify":"^1.0.0","mocha":"~1.18.2","mocha-lcov-reporter":"0.0.1","should":"~3.3.1"},"gitHead":"6a39ca3759060f5e28f2c7ec5fe6959dd6812e80","_id":"jsfmt@0.5.0","_shasum":"a8f94d6074920dd21212e5a14b0c7bc8f644a094","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"a8f94d6074920dd21212e5a14b0c7bc8f644a094","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.5.0.tgz","integrity":"sha512-IvNpcBzgmZiev621GL8HGLiTK7zNMIVi+ijZr0f1DFHWzHY/az4PNnnHJP9V8v90goyjaSefjGbviRyU7IPsow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKACU//S/wf4kRRY9w0xilPdfimMVyV48mT9AYAXIhHwIhAI0cUszUkdsL6E+I3zn6p/GwQfEhe9stOCTFV+i8Mqsv"}]}},"0.5.1":{"name":"jsfmt","description":"gofmt for javascript","version":"0.5.1","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"deep-extend":"~0.3.2","docopt":"~0.4.0","escodegen":"~1.6.1","esformatter":"~0.7.2","esformatter-braces":"~1.0.0","esformatter-var-each":"~1.0.0","esprima":"~2.6.0","falafel":"~1.2.0","glob":"~4.4.0","rc":"~0.6.0","rocambole":"~0.5.0","tmp":"~0.0.23","underscore":"~1.8.0"},"repository":{"type":"git","url":"git+https://github.com/rdio/jsfmt.git"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"coveralls":"~2.8.0","grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.10.0","grunt-exec":"~0.4.5","grunt-mocha-test":"~0.11.0","jscoverage":"~0.3.8","json-stable-stringify":"^1.0.0","mocha":"~1.18.2","mocha-lcov-reporter":"0.0.1","should":"~3.3.1"},"gitHead":"41354872f75a11ed56190b51260ab51c5907023d","_id":"jsfmt@0.5.1","_shasum":"298327c3afffe65e0b9712d1578be5cbdff4f2a6","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"298327c3afffe65e0b9712d1578be5cbdff4f2a6","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.5.1.tgz","integrity":"sha512-qfzIcvicOS10CO6hUZiZly53H6OFIP4A1qX3X+SWUFSrEmMLX6+8r3PF+eEwid6UB1P/ZRxzcQfkiemrqbGCHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCndmQDS6pfImL+Toz4/6EMBq3Jry5FBZfW3jlDeC/13QIhAPWbZ9SBY3QU0nSKINtGa7jkbT8K1Ki8Z1tjBYjcrpti"}]}},"0.5.2":{"name":"jsfmt","description":"gofmt for javascript","version":"0.5.2","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt && grunt fmt && grunt verify","fmt":"grunt fmt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"deep-extend":"~0.4.0","docopt":"~0.4.1","escodegen":"~1.7.0","esformatter":"~0.8.1","esformatter-braces":"~1.2.1","esformatter-var-each":"~2.1.0","esprima":"~2.7.0","falafel":"~1.2.0","glob":"~5.0.15","rc":"~1.1.2","rocambole":"~0.7.0","tmp":"~0.0.23","underscore":"~1.8.0"},"repository":{"type":"git","url":"git+https://github.com/rdio/jsfmt.git"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"coveralls":"~2.11.4","grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.11.3","grunt-exec":"~0.4.5","grunt-mocha-test":"~0.12.7","jscoverage":"~0.6.0","json-stable-stringify":"~1.0.0","mocha":"~2.3.3","mocha-lcov-reporter":"1.0.0","should":"~7.1.1"},"gitHead":"6336a51e1ba4fa0bb40840af4ca0e2119d5a012b","_id":"jsfmt@0.5.2","_shasum":"1a8f9a3a76d21bb031297aca7ba0aa455ddce2fb","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"1a8f9a3a76d21bb031297aca7ba0aa455ddce2fb","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.5.2.tgz","integrity":"sha512-Fw1BID2xqEU25soRw+LSouHnLANEbxEUJ0+ZGSVXppzPyf9jc/eP+lLMXOZTi2vRUhhHbsrBwRyaMraE3eun1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTCPSfsbt4Ou5+jsksS0QnTBBVodEZrfJv3XPK2XIrxgIhAJ+7L8nLylLOk2B8SoOqE5AtcoDJsKQaGZILKUU+KsJ4"}]}},"0.5.3":{"name":"jsfmt","description":"gofmt for javascript","version":"0.5.3","homepage":"https://github.com/rdio/jsfmt","main":"./lib/index.js","engines":{"node":">=0.4.0"},"bin":{"jsfmt":"./bin/jsfmt"},"scripts":{"test":"grunt && grunt fmt && grunt verify","fmt":"grunt fmt"},"files":["bin","lib","LICENSE.MD"],"maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"dependencies":{"deep-extend":"~0.4.0","docopt":"~0.4.1","escodegen":"~1.7.0","esformatter":"~0.9.0","esformatter-braces":"~1.2.1","esformatter-var-each":"~2.1.0","esprima":"~2.7.0","falafel":"~1.2.0","glob":"~5.0.15","rc":"~1.1.2","rocambole":"~0.7.0","tmp":"~0.0.23","underscore":"~1.8.0"},"repository":{"type":"git","url":"git+https://github.com/rdio/jsfmt.git"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"licenses":[{"type":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"devDependencies":{"coveralls":"~2.11.4","grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-contrib-jshint":"~0.11.3","grunt-exec":"~0.4.5","grunt-mocha-test":"~0.12.7","jscoverage":"~0.6.0","json-stable-stringify":"~1.0.0","mocha":"~2.3.3","mocha-lcov-reporter":"1.0.0","should":"~7.1.1"},"gitHead":"2ad2ff4db410f0c3cbe1d46757bb955430e2b1d0","_id":"jsfmt@0.5.3","_shasum":"a0f3b33f22296d0bf5a9c4c1a195151f348eb036","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},"dist":{"shasum":"a0f3b33f22296d0bf5a9c4c1a195151f348eb036","tarball":"https://registry.npmjs.org/jsfmt/-/jsfmt-0.5.3.tgz","integrity":"sha512-qJShQ4TVpK7iEB0NyVxoTzCRbok11VuH/suwC1iFzfh6REwUsXBGwJFa5n5Z1aNtTem/rycaWBfs0HCRj0mdrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOnxO9b0yBLtOz7+S7vJa72AyYQFiSr5kyKMdob8kQ5AiBR6OR/FrGD9gSBvNo4njngcbMnYIbM3x42qTc/W4DJaA=="}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/jsfmt-0.5.3.tgz_1454532009818_0.6091219873633236"}}},"readme":"jsfmt\n===\n\n[![NPM version](https://badge.fury.io/js/jsfmt.svg)](http://badge.fury.io/js/jsfmt)\n[![Build Status](https://travis-ci.org/rdio/jsfmt.svg?branch=master)](https://travis-ci.org/rdio/jsfmt)\n[![Dependency Status](https://david-dm.org/rdio/jsfmt.svg)](https://david-dm.org/rdio/jsfmt)\n[![Coverage Status](https://coveralls.io/repos/rdio/jsfmt/badge.svg)](https://coveralls.io/r/rdio/jsfmt)\n\nFor formatting, searching, and rewriting JavaScript. Analogous to [`gofmt`](http://golang.org/cmd/gofmt/).\n\nInstallation\n---\n\n`npm install -g jsfmt`\n\nUsage\n---\n\n```\n$ jsfmt --help\nUsage:\n  jsfmt [--no-format] [--save-ast] [--diff|--list|--write] [--validate] [--rewrite PATTERN|--search PATTERN] [--json|--ast] [<file>...]\n  jsfmt (--version | --help)\n\nOptions:\n  -h --help                      Show this help text\n  --version                      Show jsfmt version\n  -d --diff                      Show diff against original file\n  -l --list                      List the files which differ from jsfmt output\n  -v --validate                  Validate the input file(s)\n  --no-format                    Do not format the input file(s)\n  -w --write                     Overwrite the original file with jsfmt output\n  -j --json                      Tell jsfmt that the file being parsed is json\n  -a --ast                       Tell jsfmt that the file being parsed is in JSON AST\n  --save-ast                     Output the resulting js in JSON AST format\n  -r=PATTERN --rewrite PATTERN   Rewrite rule (e.g., 'a.slice(b, len(a) -> a.slice(b)')\n  -s=PATTERN --search PATTERN    Search rule (e.g., 'a.slice')\n```\n\nIf no path is given it will read from `stdin`. A directory path will recurse over all *.js files in the directory.\n\nNote that the AST options (`--ast` and `--save-ast`) are experimental and may be removed.\n\nFormatting\n---\n\nFor formatting `jsfmt` uses [esformatter](https://github.com/millermedeiros/esformatter).\n\n### .jsfmtrc\n\nAny of the [esformatter](https://github.com/millermedeiros/esformatter) formatting\noptions can be overwritten via a `.jsfmtrc` file. The file is parsed using\n[rc](https://github.com/dominictarr/rc), which accepts either a `json` or `ini` formatted file.\n\nA `.jsfmtrc` will be read if it exists in any of the following directories:\n* a local .jsfmtrc or the first found looking in ./ ../ ../../ ../../../ etc.\n* $HOME/.jsfmtrc\n* $HOME/.jsfmt/config\n* $HOME/.config/jsfmt\n* $HOME/.config/jsfmt/config\n* /etc/jsfmtrc\n* /etc/jsfmt/config\n\n`jsfmt` will also attempt to pickup and use the configured `indent`\nvariable from your `.jshintrc` configuration file, if present.\n\nRewriting\n---\n\nThe `--rewrite` flag allows rewriting portions of the JavaScript's AST before formatting. This is especially handy for intelligent renaming and handling API changes from a library. The rewrite rule must be a string of the form:\n\n    pattern -> replacement\n\nBoth `pattern` and `replacement` must be valid JavaScript. In `pattern`, single-character lowercase identifiers serve as wildcards matching arbitrary expressions; those expressions will be substituted for the same identifiers in the `replacement`.\n\n### Example\n\nRewrite occurences of `_.reduce` to use native reduce:\n\n    jsfmt --rewrite \"_.reduce(a, b, c) -> a.reduce(b, c)\" reduce.js\n\nSearching\n---\n\nThe `--search` flag allows searching through a JavaScript's AST. The search rule is very similar to the rewrite rule but just outputs expressions that match the given search expression. The search expression must be valid JavaScript.\n\n### Example\n\nFind occurences of `_.reduce`:\n\n    jsfmt --search \"_.reduce(a, b, c)\" reduce.js\n\nValidating\n---\n\nThe `--validate` flag will print any errors found by esprima while parsing the JavaScript.\n\n### Example\n\n    jsfmt --validate bad.js\n\nAPI\n---\n\n### Formatting\n\n```javascript\njsfmt.format(<javascript_string>, <config_object>) // Returns formatted JavaScript\n```\n\n```javascript\njsfmt.formatJSON(<JSON_string>, <config_object>) // Returns formatted JSON\n```\n\n```javascript\nvar config = jsfmt.getConfig(); // Loads the jsfmt config from the appropriate rc file or default config object\n```\n\n#### Example\n\n```javascript\nvar jsfmt = require('jsfmt');\nvar fs = require('fs');\n\nvar js = fs.readFileSync('unformatted.js');\nvar config = jsfmt.getConfig();\n\njs = jsfmt.format(js, config);\n```\n\n### Rewriting\n\n```javascript\njsfmt.rewrite(<javascript_string>, <rewrite_rule>) // Returns rewritten JavaScript\n```\n\n#### Example\n\n```javascript\nvar jsfmt = require('jsfmt');\nvar fs = require('fs');\n\nvar js = fs.readFileSync('each.js');\n\njs = jsfmt.rewrite(js, \"_.each(a, b) -> a.forEach(b)\");\n```\n\n### Searching\n\n```javascript\njsfmt.search(<javascript_string>, <search_expression>) // Returns array of matches\n```\n\n#### Example\n\n```javascript\nvar jsfmt = require('jsfmt');\nvar fs = require('fs');\n\nvar js = fs.readFileSync('component.js');\n\njsfmt.search(js, \"R.Component.create(a, { dependencies: z })\").forEach(function(matches, wildcards) {\n  console.log(wildcards.z);\n});\n```\n\n### Validating\n\n```javascript\njsfmt.validate(<javascript_string>) // Returns errors found while parsing JavaScript\n```\n\n```javascript\njsfmt.validateJSON(<JSON_string>) // Returns errors found while parsing JSON\n```\n\n#### Example\n\n```javascript\nvar jsfmt = require('jsfmt');\nvar fs = require('fs');\n\nvar js = fs.readFileSync('each.js');\nvar errors = jsfmt.validate(js);\n\nfor (var i = 0; i < errors.length; i++) {\n  console.error(errors[i]);\n}\n```\n\nPlugins\n-------\n\nSince `jsfmt` uses `esformatter` under the covers for formatting your code you can utilize any `esformatter` plugins with `jsfmt`. Please see https://github.com/millermedeiros/esformatter/#plugins for more information.\n\n### JSX\n\nThere exists a plugin [esformatter-jsx](https://github.com/royriojas/esformatter-jsx) which provides support for formatting JSX with `esformatter`. Please see https://github.com/royriojas/esformatter-jsx/wiki/Usage-with-jsfmt for more information on setting up with `jsfmt`.\n\nLinks\n---\n\n- vim-jsfmt.vim - https://github.com/mephux/vim-jsfmt - \"Format javascript source on save.\"\n- Atom Package - https://atom.io/packages/atom-jsfmt - \"Automatically run jsfmt every time you save a JavaScript source file.\"\n- Grunt Task - https://github.com/james2doyle/grunt-jsfmt - \"A task for the jsfmt library.\"\n- Emacs Plugin - https://github.com/brettlangdon/jsfmt.el - \"Run jsfmt from within emacs\"\n- Gulp Task - https://github.com/blai/gulp-jsfmt - \"A gulp task for jsfmt.\"  \n- Sublime Text plugin - https://github.com/ionutvmi/sublime-jsfmt - \"On-demand and automatic jsfmt from Sublime Text 2 and 3\"\n\nChangelog\n---\n\n### v0.4.0\n\n- Added two new command-line args for AST formatting. Note that these are experimental and may be removed.\n- Removed `--config` option in favor of .jsfmtrc and better docs around rc.\n- Updated esformatter and using new esformatter plugin for automatic brace insertion.\n- Updated style guide to include esformatter changes.\n- Fixes and cleanup for shebang.\n- Support for variable arguments using ES6 rest syntax.\n- General rewrite cleanup.\n- Changing exit code to `-1` on missing arg failure.\n- Updates to `rc` and other dependencies.\n\n### v0.3.2\n\n- Adding support for `UnaryExpression`\n- Fixing bug where rewrite types were not being set properly\n\n### v0.3.1\n\n- Fixed bug when searching for expressions within BlockStatement or Program body\n- Added JSON support\n\n### v0.3.0\n\n- Added CONTRIBUTING\n- Added tests\n- Added Gruntfile for development\n- Added CI support\n- Added style guide\n- Added default formatting config\n- Exposed `jsfmt.getConfig` api method for loading jsfmt config\n- Exposed `jsfmt.format(js[, options])` api method for formatting\n- Added `--validate` option and exposed `jsfmt.validate` api method\n- Pinned dependencies\n\n### v0.2.0\n\n- Add [rc](https://github.com/dominictarr/rc) and `--config config.json` support for formatting configuration\n- Making `--format` the default action\n- Fix support for shebang at the top of js files, e.g. `#!/usr/bin/env node`\n- Fix jsfmt diff mode where whitespace was unaccounted for due to `-b` git diff option\n\n### v0.1.1\n\n- Initial release\n\nLicense\n---\nApache License, Version 2.0. Copyright 2014 Rdio, Inc.\n","maintainers":[{"name":"jimfleming","email":"jimmy.fleming@gmail.com"},{"name":"justin","email":"justin.tulloss@gmail.com"}],"time":{"modified":"2022-06-19T06:01:22.362Z","created":"2014-03-03T23:19:08.062Z","0.0.2":"2014-03-03T23:19:09.347Z","0.0.3":"2014-03-26T19:22:46.096Z","0.0.4":"2014-03-26T19:43:35.761Z","0.0.5":"2014-03-27T16:46:56.983Z","0.0.6":"2014-03-27T22:33:26.345Z","0.0.7":"2014-03-27T23:41:36.941Z","0.0.8":"2014-03-31T19:23:36.771Z","0.0.9":"2014-03-31T23:16:52.850Z","0.1.0":"2014-04-04T23:38:41.635Z","0.1.1":"2014-04-21T18:27:33.465Z","0.2.0":"2014-05-12T18:35:59.246Z","0.3.0":"2014-06-06T16:49:32.060Z","0.3.1":"2014-06-11T21:17:54.601Z","0.3.2":"2014-06-17T17:57:00.364Z","0.4.0":"2014-09-17T21:17:01.325Z","0.4.1":"2015-03-02T02:17:31.496Z","0.5.0":"2015-08-07T04:02:57.698Z","0.5.1":"2015-09-30T17:16:12.252Z","0.5.2":"2015-10-31T22:30:55.980Z","0.5.3":"2016-02-03T20:40:10.746Z"},"readmeFilename":"README.md","homepage":"https://github.com/rdio/jsfmt","keywords":["ast","javascript","parser","rewrite","syntax","format","search"],"repository":{"type":"git","url":"git+https://github.com/rdio/jsfmt.git"},"bugs":{"url":"https://github.com/rdio/jsfmt/issues"},"users":{"randallagordon":true,"pokimon":true}}