JSPM

how-many-people-are-bouldering

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22622F
  • License CC0-1.0

An API Client to check how many people are in a bouldering gym (in Germany)

Package Exports

  • how-many-people-are-bouldering
  • how-many-people-are-bouldering/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (how-many-people-are-bouldering) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

How many people are bouldering?

Programmatically find out how many people are in a bouldering gym

Usage

You need node.js and npm

Install with npm install how-many-people-are-bouldering

const Bouldering = require('how-many-people-are-bouldering')

// Bouldering.gyms is an Array of all supported gyms
// you can also find this data in gyms.json
const myFavoriteGym = Bouldering.gyms.find((gym) => gym.name === 'Berlin Magicmountain')

Bouldering.getOccupancy(myFavoriteGym).then((result) => console.log(result))

// Because Berlin Magicmount uses Boulderado's API (myFavoriteGym.api.type === 'boulderado')
// -> the result will be absolute
const exampleAbsoluteResult = {
  type: 'absolute',
  current: 69,
  max: 130,
}
const exampleRelativeResult = {
  type: 'relative',
  percentage: 15,
}