Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 296 Bytes

Used to load and save PO files.

var po = require('po')
    , fs = require('fs')

po.load('text.po', function(_po){
    console.log(_po.headers);
    console.log(_po.items);

    _po.save('copy.po', function(){
    console.log('We copied a PO file for no reason!');
    });
});