Skip to content

Commit

Permalink
fix(CLI): fixed output file writing for Node >7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosat-dev committed Dec 21, 2016
1 parent b196e83 commit f90a499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function determineOutputNameAndFormat (outputFormat, outputFile) {
}

function writeOutputDataToFile (outputFile, outputData) {
fs.writeFile(outputFile, outputData.asBuffer(), 0,
fs.writeFile(outputFile, outputData.asBuffer(),
function (err) {
if (err) {
console.log('err', err)
Expand Down

0 comments on commit f90a499

Please sign in to comment.