mdfind-stream

0.0.1 • Public • Published

mdfind-stream

osx mdfind stream interface

Usage

var mdfind = require('mdfind-stream');

var opt = {
  onlyin: '~/Desktop',
  live: false
};

mdfind('image',opt).on('data',function(data){
  console.log(data);
});

// or
mdfind('image',opt).pipe(process.stdout);

// if `name` option set, first argument is ignored.
mdfind('aaa',{onlyin: __dirname+'/test/fixtures', name: 'aaa', count: true}).pipe(process.stdout); // => "1/n"

Readme

Keywords

none

Package Sidebar

Install

npm i mdfind-stream

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • nbqx