npm.io
1.0.1 • Published 11 years ago

yamlfile

Licence
MIT
Version
1.0.1
Deps
1
Vulns
0
Weekly
0

yamlfile

simple api to read and write yaml files

Install

npm install yamlfile

Using

Reading a yaml file

var yamlfile = require('yamlfile')
var data = yamlfile.readFileSync('somefile.yaml')

Writing a yaml file

var yamlfile = require('yamlfile')
var data = {a: 3, b: 5}
yamlfile.writeFileSync('somefile.yaml', data)

Author

Geza Kovacs

License

MIT

Keywords