cln
Clean source code for comparison
Last updated 2 years ago by dfcreative .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cln 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

3 Versions

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

Copyright 2014 - 2017 © taobao.org |