0.0.1 • Published 9 years ago
replaxify v0.0.1
REplaxify
Introduction
This library helps you deal with massive text files, which allows you doing string matching, and replacing with regular expression or css selector.
var Replaxify = require('./core.js'),
modules = require('./modules');
var opt = process.argv[2];
if(process.argv.length > 0)
console.log('Using configuration [' + opt + ']');
// load configuration
new Replaxify(modules[opt])
// create folder list (recursively)
.traverse()
// match strings with pattern, raw result is also produced here
.parseFolders()
// filter results
.filter(function(p){
return !/^\{[^\{\}]+\}$/gi.test(item);
})
// output report file
.report()
.done();