properties-reader
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "properties-reader", | ||
"description": "Properties file reader for Node.js", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Steve King", |
@@ -56,2 +56,16 @@ Properties-Reader | ||
properties.get('blah.some.thing') == 'bar'; | ||
// looping through the properties reader | ||
properties.each((key, value) => { | ||
// called for each item in the reader, | ||
// first with key=main.some.thing, value=foo | ||
// next with key=blah.some.thing, value=bar | ||
}); | ||
// get all properties at once | ||
expect(properties.getAllProperties()).toEqual({ | ||
'main.some.thing': 'foo', | ||
'blah.some.thing': 'bar', | ||
}) | ||
@@ -58,0 +72,0 @@ Checking for the current number of properties that have been read into the reader: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19510
130