Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

properties-reader

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

properties-reader - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "properties-reader",
"description": "Properties file reader for Node.js",
"version": "0.0.8",
"version": "0.0.9",
"author": {

@@ -6,0 +6,0 @@ "name": "Steve King",

@@ -99,3 +99,3 @@ (function() {

}
else {
else if (typeof value === "string") {
var replacements = {'\\n': '\n', '\\r': '\r', '\\t': '\t'};

@@ -102,0 +102,0 @@ parsedValue = value.replace(/\\[nrt]/g, function (key) {

@@ -118,3 +118,11 @@

Assertions.assertEquals(properties.path().some.property, 'Multi\\n Line \\nString', 'Sets all properties');
},
'test Returns null when getting a missing property': function () {
var properties = givenFilePropertiesReader('prop = value');
// parsed access modifies the new line characters
Assertions.assertEquals(properties.get('prop'), 'value', 'Gets values that are present');
Assertions.assertEquals(properties.get('missing'), null, 'Gets null for values that are missing');
}
});
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc