node-filesearch

0.1.6 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i node-filesearch

Weekly Downloads

4

Version

0.1.6

License

NONE

Last publish

Collaborators

  • manak