Files
npm/node_modules/fstream-npm
isaacs 8dd11d1347 update several dependencies
The quest to avoid SemVer '0.x' magic continues.
2014-07-31 15:42:26 -07:00
..
2012-07-13 09:21:25 -07:00
2012-03-27 00:17:35 -07:00
2013-10-23 23:13:01 -07:00
2014-07-31 15:42:26 -07:00
2014-07-31 15:42:26 -07:00
2012-03-27 00:17:35 -07:00

fstream-npm

This is an fstream DirReader class that will read a directory and filter things according to the semantics of what goes in an npm package.

For example:

// This will print out all the files that would be included
// by 'npm publish' or 'npm install' of this directory.

var FN = require("fstream-npm")
FN({ path: "./" })
  .on("child", function (e) {
    console.error(e.path.substr(e.root.path.length + 1))
  })