https://github.com/dy/cln
Clean source code for comparison
https://github.com/dy/cln
Last synced: 10 months ago
JSON representation
Clean source code for comparison
- Host: GitHub
- URL: https://github.com/dy/cln
- Owner: dy
- Created: 2016-03-26T00:16:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-10T10:17:09.000Z (over 7 years ago)
- Last Synced: 2025-07-29T20:26:28.829Z (11 months ago)
- Language: JavaScript
- Homepage: http://npmjs.org/package/cln
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Clean source code before comparing fixtures.
To avoid leading/trailing/repeating whitespaces, newlines or tabs headache.
```js
var clean = require('cln')
var assert = require('assert')
assert.equal(
clean(compile(`
float a = 1;
`)),
clean`
var a = 1;
`;
```