remarkup-po
v0.1.2
Published
HTML semantics and program logic separator (for pofiles)
Downloads
3
Maintainers
Readme
remarkup-po
Utilities for using remarkup with .po
files.
Install via npm install remarkup-po
.
CLI usage
remarkup-po unmarkup original.pot > output.pot
remarkup-po remarkup original.pot unmarkupped.po > output.po
Programmatic usage
const originalPot = fs.readFileSync('(...).pot', 'utf-8');
const strippedPo = fs.readFileSync('(...).po', 'utf-8');
const strippedPot = remarkupPo.unmarkup(originalPot);
const finalPo = remarkupPo.remarkup(originalPot, strippedPo);
fs.writeFileSync('(...).po', finalPo);
License
MIT