Update README.md

This commit is contained in:
AJ ONeal 2015-12-19 10:19:50 -08:00
parent f900950bd3
commit 49c5af0c52
1 changed files with 2 additions and 1 deletions

View File

@ -34,11 +34,12 @@ npm install --save pyconf
```javascript
var pyconf = require('pyconf');
# alias for fs.readFile() then pyconf.parse()
// alias for fs.readFile() then pyconf.parse()
pyconf.readFile("/path/to/foo.conf", function (err, obj) {
console.log(obj);
});
// alias for pyconf.stringify() then safeReplace.writeFile()
pyconf.writeFile("/path/to/foo.conf", obj, function (err, obj) {
console.log("wrote file");
});