/sandbag

JS utilities for working with climbing grades

Primary LanguageTypeScriptMIT LicenseMIT

Develop branch License

All Contributors

What is this?

Javascript utilities for working with rock climbing grades.

** Only YDS and V scale are supported at the moment. Code contributions are most welcome!**

Questions? Join us on Discord.

How to use the library

Install the package

Using NPM

npm install @openbeta/sandbag

Using Yarn

yarn add @openbeta/sandbag

Compare YDS grades

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.

Development (TBD)

yarn install
yarn test

License

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


AntoineM

💻 🤔

Kendra Gibbons

💻 🤔

MichaelDimmitt

💻

Clinton Lunn

💻

Darren Lew

💻 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!