@c2corg/fit-parser-extract-geometry
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

fit-parser-extract-geometry

GitHub license Continuous integration Github Code scanning Codacy Badge Codacy Badge

Basic FIT parser that only focuses on extracting geometry from activities

Installation

npm install @c2corg/fit-parser-extract-geometry

Usage

import { extractGeometry } from '@c2corg/fit-parser-extract-geometry';

const bytes = [0x0E, 0x10, 0xD9, 0x07, 0x00, 0x00, 0x00, 0x00, 0x2E, 0x46, 0x49, 0x54, 0x91, 0x33, 0x00, 0x00];
const geometry = extractGeometry(new Uint8Array(bytes));

When an error is encountered, the parser stops silently and returns the coordinates already processed. Set DEBUG environment variable to fit-parser-extract-geometry to enable error messages (more info).

Readme

Keywords

Package Sidebar

Install

npm i @c2corg/fit-parser-extract-geometry

Weekly Downloads

15

Version

1.0.2

License

MIT

Unpacked Size

29.8 kB

Total Files

6

Last publish

Collaborators

  • devc2corg
  • brunobesson