strava-activities-stream

1.0.0 • Public • Published

strava-activities-stream Build Status

Fetch Strava activities as a Readable stream

Install

npm install --save strava-activities-stream

Usage

const ActivitiesStream = require('strava-activities-stream')
 
new ActivitiesStream({
  token: 'my auth token',
  after: new Date(new Date() - 1000 * 60 * 60 * 24 * 30) // 30 days ago
})
.on('data', console.log)

API

new ActivitiesStream(options) -> readable

options
token

Required
Type: string

A Strava API access token.

after

Type: date
Default: new Date(0)

A date when the stream will begin.

before

Type: date
Default: undefined

A date when the stream will end. By default, the stream will continue until no more activities are available.

License

MIT © Ben Drucker

Package Sidebar

Install

npm i strava-activities-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker