Skip to content

Instantly share code, notes, and snippets.

View mikeedwards's full-sized avatar

Mike Edwards mikeedwards

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mikeedwards on github.
  • I am mikeedwards (https://keybase.io/mikeedwards) on keybase.
  • I have a public key ASAfFFaS608dUI_M0wz_FSajPm5jZM8gqYB3CdTjQvfXdgo

To claim this, I am signing this object:

@mikeedwards
mikeedwards / po2json.js
Created June 6, 2012 21:34 — forked from danroberts/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) {