Nson
Nson

Reputation: 125

How to make a config.yaml and write to it with the help of node.js?

The title pretty much says it all. I just want to save data and access it anytime I want. JS-Yaml is very good for parsing yaml but the thing is that I also need to know how to make a config and write data to that yaml + get that data. Thanks

Upvotes: 0

Views: 4909

Answers (1)

Stenal P Jolly
Stenal P Jolly

Reputation: 777

If you are using node js, there are plenty of libraries available to read and write yaml file

You can try using: https://www.npmjs.com/package/node-yaml

npm install --save node-yaml

It has functions for open, parse and write yml files. Also I like the documentation

Upvotes: 2

Related Questions