-
Notifications
You must be signed in to change notification settings - Fork 205
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
REQUEST: add option to preserve comments #32
Comments
+1 I'd like this all well. Basically what I want is a way to make simple edits to ini/cnf files on the Linux CLI. I want to ensure that comments are retained. Perhaps using this method: http://fadefade.com/json-comments.html or perhaps into cson? By the way, if you change the |
hello person from 2014. npm install --save --no-package-lock --unsafe-perm=true ini-api
it retains comments. |
If this is still something folks need feel free to submit a PR implementing the feature. |
I'm using
ini
to parse a nexus deploy configuration file, and by all means, it works great, but our java developers has the habit of using comments in this configuration file, andini.parse
removes all text after strings with#
and;
.Example
Desired outcome:
Actual outcome:
I'm using
[email protected]
,[email protected]
and[email protected]
in a windows 7 environment with git bashThe text was updated successfully, but these errors were encountered: