lol-json-parser
A parser for .json files from League of Legends.
Download
lol-json-parser is installable via:
Usage example
var JsonParser = json = ; json;
Available methods
N.B: All methods act as promises if no callback is passed.
parse(path, cb)
It will roughly parse a .json file from the given path.
Parameters
- path {string} A path to where the file to parse resides.
- [cb] {Function} A callback called with
(error, parsedData)
as arguments.
read(path, cb)
It will read a .json file from the given path, creating a data object.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.