Permalink
Browse files

Merge pull request #14 from eldino/master

example: Add encoding param to readFileSync to return String for .split() instead of Buffer
  • Loading branch information...
2 parents 9d655a4 + 73ebb4d commit 8c37f2d873cf5686f4791cf89d0d0e662c8dceff @isaacs isaacs committed Mar 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/npm-init/init-input.js
@@ -156,7 +156,7 @@ module.exports = {
})(),
"repository" : (function () {
- try { var gconf = fs.readFileSync('.git/config') }
+ try { var gconf = fs.readFileSync('.git/config','utf8') }
catch (e) { gconf = null }
if (gconf) {
gconf = gconf.split(/\r?\n/)

0 comments on commit 8c37f2d

Please sign in to comment.