Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created September 10, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/3691353 to your computer and use it in GitHub Desktop.
Save isaacs/3691353 to your computer and use it in GitHub Desktop.
$ find .
.
./.gitignore
./bar
./foo
./foo/bar
./package.json
./README.md
$ cat .gitignore
bar
!foo/bar
$ node -e "var P = require('fstream-npm');P({path: '.'}).on('child', function (c) { console.log(c._path) })"
/Users/isaacs/dev/js/testpkg/package.json
/Users/isaacs/dev/js/testpkg/.gitignore
/Users/isaacs/dev/js/testpkg/README.md
/Users/isaacs/dev/js/testpkg/foo/bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment