0.0.4 • Published 11 years ago

cleanify v0.0.4

Weekly downloads
15
License
-
Repository
github
Last release
11 years ago

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);
0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago