Javascript utilities for working with rock climbing grades.
Sport & Traditional climbing
- Yosemite Decimal System
- French
- UIAA
- Ewbanks
Bouldering
- Vermin (V-scale)
- Fontainebleau
Code contributions are most welcome!
We're also looking for a project maintainer to help us improve the API and expand support for other systems. Email viet at openbeta dot io
if interested.
Join us on Discord.
Using NPM
npm install @openbeta/sandbag
Using Yarn
yarn add @openbeta/sandbag
import { YosemiteDecimal } from '@openbeta/sandbag'
const easier = YosemiteDecimal.getScoreForSort('5.6')
const harder = YosemiteDecimal.getScoreForSort('5.10')
console.log('Is 5.6 easier than 5.10?', easier < harder) // Output: true
See unit tests for more examples.
yarn install
yarn test
Submit a PR with commit message [npm publish]
MIT
Thanks goes to these wonderful people (emoji key):
AntoineM 💻 🤔 |
Kendra Gibbons 💻 🤔 |
MichaelDimmitt 💻 |
Clinton Lunn 💻 |
Darren Lew 💻 🤔 |
Klaus 💻 🤔 |
Nathan Musoke 💻 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!