node-filesearch
v0.1.6
Published
Search filesystem on MAC and Windows through node
Downloads
4
Readme
node-filesearch
NodeJS module to aid in file searching on Mac(uses Spotlight Search) & Windows(uses Everything Search)
Example
CODE
var x = require('node-filesearch');
x.search('.doc',function(results){
console.log(results);
});
results
results = {
totalResults : 1, //total number of results on hard disk regardless of max result limit
results:{
type:'folder', //could be folder/file,
name:'troll.doc', //filename
path:'C://Users', //location of file
icon:'base64 encoded png/bmp'
},
query:'troll' //your query to the search engine
}