pojson

0.0.1 • Public • Published

pojson

Converts .PO files to angular-gettext JSON

installing

$ npm install -g pojson

using

$ pojson inputdir outputdir

All PO files in inputdir will be converted to JSON and written to outputdir using the same base file name with '.json' extension.

outputdir has to exist, and existing output files will be overwritten.

example

Given this:

.
├── assets
│   └── lang
└── po
    ├── de.po
    ├── en.po
    └── fr.po

the commend pojson ./po ./assets/lang will produce this:

.
├── assets
│   └── lang
│       ├── de.json
│       ├── en.json
│       └── fr.json
└── po
    ├── de.po
    ├── en.po
    └── fr.po

Readme

Keywords

none

Package Sidebar

Install

npm i pojson

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • pmichel