hideout-parse
v0.1.0
Published
Parse Path Of Exile.
Downloads
4
Maintainers
Readme
HIDEOUT PARSE
Parse Path Of Exile.
Installation
yarn add hideout-parse
# or
npm install hideout-parse
Usage
JavaScript
<input type="file" id="files" name="files[]" />
import HideoutParse from 'hideout-parse';
window.onload = () => {
document.getElementById('files').onchange = readFile;
};
function readFile() {
file = this.files[0];
var fReader = new FileReader();
fReader.onload = (e) => {
const parse = HideoutParse(e.target.result);
console.log(parse);
};
fReader.readAsText(file);
}
Node.js
import fs from 'fs';
import HideoutParse from 'hideout-parse';
const file = fs.readFileSync('./test.hideout');
const parse = HideoutParse(file.toString());
console.log(parse);