normalize-javascript
v1.0.3
Published
Normalize javascript code, useful for comparison
Downloads
5
Maintainers
Readme
normalize-javascript
Normalize javascript code, useful for comparison
normalizes whitespace, semicolons and variable names.
Usage
var normalizeJs = require('normalize-javascript');
normalizeJs(`
var foo = 1;
function bar() {
return foo
}`);
// Result:
//
// var _ref = 1;
// function _ref2() {
// return _ref;
// }
`)