Skip to content

Commit

Permalink
Add support for files streams
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed Dec 28, 2014
1 parent cb232f0 commit 723723d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Converter {
*/
isTransformable(file) {
let ext = path.extname(file.path);
return file.isBuffer() && ext.endsWith(this.options.from);
return (file.isBuffer() || file.isStream()) && ext.endsWith(this.options.from);
}

/**
Expand Down

0 comments on commit 723723d

Please sign in to comment.