Clean up README file.
This commit is contained in:
parent
3503eb67ab
commit
a1623e6b64
18
README.md
18
README.md
@ -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!');
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user