Clean up README file.

This commit is contained in:
Ruben Vermeersch 2013-12-18 17:03:24 +01:00
parent 3503eb67ab
commit a1623e6b64

View File

@ -1,14 +1,16 @@
Used to load and save PO files. Used to load and save PO files.
var po = require('node-po') ```js
, fs = require('fs') var PO = require('node-po');
po.load('text.po', function(_po){ PO.load('text.po', function (err, po) {
console.log(_po.headers); // Handle err if needed
console.log(_po.items); console.log(po.headers);
console.log(po.items);
_po.save('copy.po', function(){ po.save('copy.po', function (err) {
// Handle err if needed
console.log('We copied a PO file for no reason!'); console.log('We copied a PO file for no reason!');
});
}); });
});
```