Parse a .skiz file exported from Ski Tracks
$ npm install skiz-parser
import { promises as fsAsync } from 'fs';
import { parseSkizFile } from 'skiz-parser';
const contents = await fsAsync.readFile('./example.skiz');
const result = await parseSkizFile(contents);
console.log(result);
//=> { name: 'Day 1 - 2018/2019', … }
Returns a Promise<object>
with the parsed .skiz file.
Optionally a callback function may be used instead.
Type: Buffer
Contents of a .skiz
file.
Type: Function
Optional callback with error as the first argument and the parsed .skiz file as the second.