Skip to content

JS utilities for working with climbing grades

License

Notifications You must be signed in to change notification settings

TaliaMalia/sandbag

 
 

Repository files navigation

Develop branch License

All Contributors

What is this?

Javascript utilities for working with rock climbing grades.

Supported systems

Sport & Traditional climbing

  • Yosemite Decimal System
  • French
  • UIAA
  • Ewbanks

Bouldering

  • Vermin (V-scale)
  • Fontainebleau

Help Wanted

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.

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

How to publish a new release to NPM

Submit a PR with commit message [npm publish]

License

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):

AntoineM
AntoineM

💻 🤔
Kendra Gibbons
Kendra Gibbons

💻 🤔
MichaelDimmitt
MichaelDimmitt

💻
Clinton Lunn
Clinton Lunn

💻
Darren Lew
Darren Lew

💻 🤔
Klaus
Klaus

💻 🤔
Nathan Musoke
Nathan Musoke

💻 🤔

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

About

JS utilities for working with climbing grades

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.7%
  • Other 0.3%