cln

1.1.0 • Public • Published

Clean source code before comparing fixtures. To avoid leading/trailing/repeating whitespaces, newlines or tabs headache.

var clean = require('cln')
var assert = require('assert')
 
assert.equal(
clean(compile(`
    float a = 1;
`)),
clean`
    var a = 1;
`;

Dependents (0)

Package Sidebar

Install

npm i cln

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

1.4 kB

Total Files

3

Last publish

Collaborators

  • dfcreative