Miss any of our Open RFC calls?Watch the recordings here! »

@neilujd/activities-lab

1.1.0 • Public • Published

Description

Small lib that permit to compute data from tracking activities data.

Requirements

  1. Node version should be >=12

  2. A Dark Sky API key

  3. Installation

npm i @neilujd/activities-lab

How to use

  1. Set the environment variable DARK_SKY_API_KEY

  2. Here is an example :

import { Track, Activity, Marathon } from 'activities-lab';
import waypoints from 'activities-lab/sample.js';
 
const track = new Track(waypoints);
const activity = new Activity(Activity.getSportTypes().WALKING, track);
 
console.log(activity.isValid());

Test

npm test

Install

npm i @neilujd/activities-lab

DownloadsWeekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

33.5 kB

Total Files

10

Last publish

Collaborators

  • avatar