Skip to content

JS utilities for working with climbing grades

License

Notifications You must be signed in to change notification settings

AntoineMarnat/sandbag

 
 

Repository files navigation

Develop branch License

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

About

JS utilities for working with climbing grades

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.2%
  • Other 0.8%