Skip to content

Instantly share code, notes, and snippets.

View danroberts's full-sized avatar

danroberts

View GitHub Profile
@danroberts
danroberts / po2json.js
Created May 31, 2012 21:27 — forked from zaach/po2json.js
PO parser from http://jsgettext.berlios.de/lib/Gettext.js adapted for Node.js and modified to be more like po2json.pl
#!/usr/bin/env node
/*
PO parser from http://jsgettext.berlios.de/lib/Gettext.js
adapted for Node.js and modified to be more like po2json.pl
- Zach Carter <[email protected]>
Further adapted to be used inside a node.js environment instead of the command line. Import with a require statement:
var po2json = require('po2json.js')
po2json.parse('filename', function(result) {