tsb-stat-extractor
v1.0.2
Published
tsb-stat-extractor
Downloads
4
Readme
tsb-stat-extractor ·
A stat extractor for TSB save states, written in ECMAScript 6
Current save states supported:
- TSB-NES (Nestopia)
Examples
import {extract} from 'tsb-stat-extractor'
let reader = new FileReader();
reader.onload = function() {
const arrayBuffer = reader.result;
const bytes = new Uint8Array(arrayBuffer, 0, arrayBuffer.byteLength);
console.log(extract(bytes));
};
reader.readAsArrayBuffer(file);
import {extractFromArrayBuffer} from 'tsb-stat-extractor'
console.log(extractFromArrayBuffer(arrayBuffer));