An open API service indexing awesome lists of open source software.

https://github.com/npm/fstream-npm

fstream class for creating npm packages
https://github.com/npm/fstream-npm

Last synced: 10 months ago
JSON representation

fstream class for creating npm packages

Awesome Lists containing this project

README

          

# 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:

```javascript
// 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))
})
```