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

Convert ini file with dot-delimited notation into one big object #55

Open
divyansh22 opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@divyansh22
Copy link

divyansh22 commented Jun 16, 2022

Hi I want to covert my ini file which looks like :

info.info1=ans1.
info.info2=ans2.
info3.info4=ans3.
info5.info6=ans4.

to an object:

{ info:{ info1: ans1, info2:ans2 }, info3:{ info4:ans3 }, info5{ info6: ans4 } }

in the version 2.1.1 this was working by

const propertiesReader = require('properties-reader'); const properties = propertiesReader("relative path"); const obj = properties.path();

but now when I updated to the latest version 2.2.0 path is returning an empty object

in the latest version

const obj = properties.getAllProperties();
is working but i want a nested object

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