BinaryMuse / toml-node

TOML parser for Node.js and the Browser. Parses TOML v0.4.0
http://binarymuse.github.io/toml-node/
MIT License
306 stars 30 forks source link

dump api #27

Open fundon opened 8 years ago

fundon commented 8 years ago

json => toml file

andyfleming commented 8 years ago

We are effectively talking about a toml.stringify(object) type of syntax, right?

felixsanz commented 7 years ago

It's still impossible to convert json into toml ?

kenany commented 7 years ago

There's toml-stream and json2toml.

docwhat commented 6 years ago

I'm interested in taking the AST and returning that to TOML so that comments are preserved.

kyeotic commented 5 years ago

@docwhat JSON doesnt support comments. What comments are you preserving?

docwhat commented 5 years ago

JSONC eg https://www.npmjs.com/package/jsonc-parser

Sent with GitHawk

kyeotic commented 5 years ago

Ok, but thats not JSON. Thats a custom format that adds comments to JSON.