This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 147816d
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
# 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)) | |||
}) | |||
``` | |||
|