normalize-javascript
Normalize javascript code, useful for comparison
Last updated 4 years ago by janpotoms .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install normalize-javascript 
SYNC missed versions from official npm registry.

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;
// }
`)

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

4 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |