Skip to content

Commit

Permalink
Fix thanks to @yosuke-furukawa now it should be running on io.js as w…
Browse files Browse the repository at this point in the history
…ell :)
  • Loading branch information
martinheidegger committed Apr 13, 2015
1 parent 89ec943 commit 75aee8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion print-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function printText (appName, appDir, filetype, contents) {

function createFileStream (appName, appDir, file) {
var filetype = path.extname(file).replace(/^\./, '')
return fs.createReadStream(file, 'utf8')
return fs.createReadStream(file, {encoding: 'utf8'})
.pipe(through(function (data) {
this.emit('data', getText(appName, appDir, filetype, data))
}))
Expand Down

0 comments on commit 75aee8b

Please sign in to comment.