skiz-parser
v4.2.2
Published
Parse a .skiz file exported from Ski Tracks
Downloads
106
Readme
skiz-parser
Parse a .skiz file exported from Ski Tracks
Install
$ npm install skiz-parser
Usage
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', … }
API
parseSkizFile(contents, callback?)
Returns a Promise<object>
with the parsed .skiz file.
Optionally a callback function may be used instead.
contents
Type: Buffer
Contents of a .skiz
file.
callback
Type: Function
Optional callback with error as the first argument and the parsed .skiz file as the second.