0.0.4 • Published 11 years ago
cleanify v0.0.4
Cleanify
Nodejs module for stripping comments from strings. Alpha phase, still not usable.
Install:
npm install cleanify
To run tests enter module dir and run:
node test.js
Usage:
var fs = require('fs');
var cleanify = require('cleanify');
var lol = fs.readFileSync('./test/lol.js', 'utf8');
var wtf = fs.readFileSync('./test/wtf.json', 'utf8');
var oh = fs.readFileSync('./test/oh.txt', 'utf8');
// Return lol data
var string = cleanify(lol);
// If you use more arguemts or array you will get array back
var array1 = cleanify.strip(lol, oh, wtf);
var array2 = cleanify.strip([lol, oh, wtf]);
var array3 = cleanify.strip([lol, oh], wtf);