Socket
Socket
Sign inDemoInstall

properties-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

README.md

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc