Parse and compile The Elder Scrolls Online's .lang files with node.js.
eso-lang is an adaption of ESOAPPS's EsoLangFile implementation for node.js.
Include the library:
const esolang = require('./index');
Parse a .lang file with
esolang.parse(Buffer) → Object
Example
[
{ Id: 3427285, Unknown: 0, Index: 3, Offset: 0, Text: 'TEST1' },
{ Id: 3427285, Unknown: 0, Index: 7, Offset: 5, Text: 'TEST2' },
]
Convert record object to a valid .lang file with
esolang.compile(Object) → Buffer
GPL v2