Skip to content

Commit

Permalink
allow writing data as Buffer [closes #7]
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkudera committed Jul 14, 2015
1 parent ae17fee commit 32e93a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
source: data
};

} else if (typeof data === 'string') {
} else if (typeof data === 'string' || data instanceof Buffer) {
type = 'file';
info = {
data: data
Expand Down

0 comments on commit 32e93a7

Please sign in to comment.