properties-parser
Advanced tools
Comparing version 0.5.0 to 0.5.1
10
index.js
@@ -98,3 +98,3 @@ var fs = require("fs"); | ||
break; // curChar is a non-separtor char | ||
break; // curChar is a non-separator char | ||
} | ||
@@ -395,5 +395,5 @@ | ||
if(!callback) { return new Editor(fs.readFileSync(path).toString(), options); } | ||
if(!callback) { return new Editor(fs.readFileSync(path, "utf8").toString(), options); } | ||
return fs.readFile(path, function(err, text) { | ||
return fs.readFile(path, "utf8", function(err, text) { | ||
if(err) { return callback(err, null); } | ||
@@ -413,5 +413,5 @@ | ||
function read(path, callback) { | ||
if(!callback) { return parse(fs.readFileSync(path)); } | ||
if(!callback) { return parse(fs.readFileSync(path, "utf8")); } | ||
return fs.readFile(path, function(err, data) { | ||
return fs.readFile(path, "utf8", function(err, data) { | ||
if(err) { return callback(err, null); } | ||
@@ -418,0 +418,0 @@ |
{ | ||
"name": "properties-parser", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A parser for .properties files written in javascript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -114,2 +114,3 @@ var fs = require("fs"); | ||
'website = whatever\n' + | ||
'language = Dutch\n' + | ||
'language = whatever\n' + | ||
@@ -116,0 +117,0 @@ '# The backslash below tells the application to continue reading\n' + |
Sorry, the diff of this file is not supported yet
23432
475
58