Parser for NSIS Modern UI language headers
yarn add @nsis/mui-language-strings || npm install @nsis/mui-language-strings
Use ES6 imports or require()
to include the module:
// ECMAScript Import
import { parse } from '@nsis/mui-language-strings';
// CommonJS Require
const { parse } = require('@nsis/mui-language-strings');
Example usage in script:
// Read an NSIS Language File
const languageFile = fs.readFileSync('Contrib/Language files/English.nsh', 'utf8');
const languageObj = parse(languageFile);
Usage: parse(string, options)
Parses an NSIS Modern UI language header, constructing an object or JSON string that's easy to query
Type: boolean
Ignores leading and trailing quotes of a language string. This option is useful to parse the Hindi language, which currently lacks one trailing quote.
Type: boolean
Minifies a stringified object, requires options.stringify
to be true
Type: boolean
Return a stringified object
This work is licensed under The MIT License