Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can save new property value after set it? #29

Closed
kanelv opened this issue Mar 30, 2020 · 1 comment
Closed

How I can save new property value after set it? #29

kanelv opened this issue Mar 30, 2020 · 1 comment

Comments

@kanelv
Copy link

kanelv commented Mar 30, 2020

  1. When reading a .ini file, I have tried to set new value for exist property
  2. After that I have tried to save props but It seems can't save new value? How can I deal with it?

This is my code:

const PropertiesReader = require('properties-reader');
const filePath = './docs/XBStation.ini';
const props = PropertiesReader(filePath);
props.set('General.Username', 'Nothing on You');
props.save('./docs/_XBStation.ini', (err, data) => { console.log(data); });

@kanelv
Copy link
Author

kanelv commented Mar 30, 2020

I have dealt with it

@kanelv kanelv closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant