Parser and stringifier for NSIS Language Files
npm install @nsis/nlf

!GitHub branch check runs
Parser and stringifier for NSIS Language Files (.nlf)
npm install @nsis/nlf
``js`
import * as NLF from "@nsis/nlf";
Example usage in script:
`js
// Read an NSIS Language File
const languageFile = fs.readFileSync(
"Contrib/Language files/English.nlf",
"utf8",
);
const languageObj = NLF.parse(languageFile);
const languageNew = NLF.stringify(languageObj);
`
#### parse
Usage: parse(string)
Parses an NSIS Language File, constructing an object.
#### stringify
Usage: stringify(Object|string, options)
Converts an NSIS Language File object or JSON string to an .nlf string.
##### options.eol
Type: "crlf" | "lf"
Selects the default end of line sequence. When not specified, it defaults to "crlf" on Windows and "lf"` elsewhere.
- nlf-cli - command-line tool to convert NLF files
- vite-plugin-nlf - Vite plugin to load NSIS language files
This work is licensed under The MIT License.