read file and directory data from a git repo as streams
npm install git-fileread file and directory data from a git repo as streams

`` js
var git = require('git-file');
var joinStream = require('join-stream');
var commit = process.argv[2];
var dir = process.argv[3];
git.list(commit, dir)
.pipe(joinStream('\n'))
.pipe(process.stdout)
;
`
` js
var git = require('git-file');
var joinStream = require('join-stream');
var commit = process.argv[2];
var file = process.argv[3];
git.read(commit, file).pipe(process.stdout);
`
` js`
var git = require('git-file')
List the contents of a directory dir at theref
revision.
Returns a stream with a 'data' event for each file where directories have a'/'
trailing .
Return a stream with the contents of file at theref
revision.
With npm do:
```
npm install git-file