pofile/README.md

21 lines
413 B
Markdown
Raw Normal View History

2011-12-23 04:21:27 +04:00
Used to load and save PO files.
2013-12-18 20:03:24 +04:00
```js
2013-12-20 12:34:21 +04:00
var PO = require('pofile');
2013-12-18 20:03:24 +04:00
PO.load('text.po', function (err, po) {
// Handle err if needed
console.log(po.headers);
console.log(po.items);
po.save('copy.po', function (err) {
// Handle err if needed
2011-12-28 00:03:19 +04:00
console.log('We copied a PO file for no reason!');
});
2013-12-18 20:03:24 +04:00
});
```
2013-12-20 12:34:21 +04:00
## Credits
Originally based on node-po (written by Michael Holly).