trovare
v0.0.1
Published
Simple module to find string in a files recursivily in a folder
Downloads
16
Readme
Trovare
Simple nodejs module to find a string recursively in a folder
Install it
npm install trovareor install it globally if you want to use it on the command-line
npm install trovare -gUsage
var Trovare = require('trovare');
var trovare = new Trovare('/tmp/folder', 'node');
trovare.search(function(result) {
console.log(' File: ' + result.file + ': ' + result.lineNumber);
console.log(' Line: ' + result.line);
console.log(' ');
});Terminal usage
Trovare will always use the current terminal folder as it's search path
# Single world serchTerm
trovare string-to-search
# Multi world serchTerm
trovare "string to search"