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.
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
MIT