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

Nested objects #19

Open
alex-dow opened this issue Jun 4, 2015 · 2 comments
Open

Nested objects #19

alex-dow opened this issue Jun 4, 2015 · 2 comments

Comments

@alex-dow
Copy link

alex-dow commented Jun 4, 2015

Hello,

I have written code to convert a plain js object to a properties file, with support for nested objects and arrays. Its not perfect, but I feel that this is its own module rather than part of the project I'm working on.

Is there a plan to introduce this feature here? If so, o could prepare a pull request.

@pixeldrew
Copy link

pixeldrew commented Aug 25, 2017

Agree, if you're going to include 'namespace' support for parsing then it should be there for stringify.

@mariomartinezricston
Copy link

Any update about this issue ? I am unable to use this package due this issue:

`var properties = require ("properties");

var testObject = { "a": "1", "b": "2", "c": ["a", "b","$test","/test"], "db": { "host": "host", "pool": { "max": 15, "min": 1 } } };
var output = properties.stringify(testObject, {namespaces: true}); //namespace not doing anything

console.log(output);`

output:

$ node test.js
a = 1
b = 2
c = a,b,$test,/test
db = [object 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

3 participants