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.2.0 to 0.3.0

2

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

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

@@ -13,3 +13,4 @@ Properties-Reader

Or clone the repo https://github.com/steveukx/properties and include the `/src/PropertiesReader.js` script.
Or clone the repo [git clone https://github.com/steveukx/properties](https://github.com/steveukx/properties) and
import the `/src/PropertiesReader.js` script.

@@ -72,2 +73,23 @@ API

### Saving changes
Once a file has been read and changes made, saving those changes to another file is as simple as running:
```
// async/await ES6
const props = new PropertiesReader(filePath);
await props.save(filePath);
// tradtitonal
const props = new PropertiesReader(filePath);
// ES5 callback style
props.save(filePath, function then(err, data) { ... });
// ES5 promise style
props.save(filePath).then(onSaved, onSaveError);
```
Data Types

@@ -74,0 +96,0 @@ ==========

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