normalize-fn

deterministically format javascript code

Usage no npm install needed!

<script type="module">
  import normalizeFn from 'https://cdn.skypack.dev/normalize-fn';
</script>

README

normalize-fn Build Status

Use esprima and escodegen to "normalize" some code.

Useful when you want to ensure that two snippets are the same regardless of minor differences in spacing, indentation, etc.

API

var normalizeFn = require('normalize-fn');

License

MIT