gettext-po-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

gettext-po-parser

NPM version Node.js CI status NPM downloads

A Gettext PO file parser written with peg.js. Tested to support parsing most PO files in the GNOME project, and every parsed node contains information for its location in source file.

Installation

npm install gettext-po-parser

Usage

import { parse } from 'gettext-po-parser';
 
const catalog = parse(input);

You can take a look at the type definitions for the returned data structure.

License

MIT

/gettext-po-parser/

    Package Sidebar

    Install

    npm i gettext-po-parser

    Weekly Downloads

    316

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    89 kB

    Total Files

    7

    Last publish

    Collaborators

    • zhanghai