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
- Host: GitHub
- URL: https://github.com/npm/fstream-npm
- Owner: npm
- License: isc
- Archived: true
- Created: 2012-03-26T22:50:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T16:51:35.000Z (about 9 years ago)
- Last Synced: 2024-10-01T16:06:35.337Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 30
- Watchers: 28
- Forks: 18
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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))
})
```