Miss any of our Open RFC calls?Watch the recordings here! »

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;
`;

Install

npm i cln

DownloadsWeekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

1.4 kB

Total Files

3

Last publish

Collaborators

  • avatar