Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surfoo/geocaching-base-converter
Encode or decode geocaching ID (base31 or base16)
https://github.com/surfoo/geocaching-base-converter
base16 base31 geocaching groundspeak npm-package
Last synced: 10 days ago
JSON representation
Encode or decode geocaching ID (base31 or base16)
- Host: GitHub
- URL: https://github.com/surfoo/geocaching-base-converter
- Owner: Surfoo
- License: mit
- Created: 2020-06-06T16:52:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T09:01:44.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T02:37:03.891Z (22 days ago)
- Topics: base16, base31, geocaching, groundspeak, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/geocaching-base-converter
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geocaching-base-converter [![Build Status](https://travis-ci.org/Surfoo/geocaching-base-converter.svg?branch=master)](https://travis-ci.org/Surfoo/geocaching-base-converter)
Encode or decode geocaching ID (base31 or base16)
This package is available on npmjs.com: [geocaching-base-converter](https://www.npmjs.com/package/geocaching-base-converter)
#### Includes characters
`0123456789ABCDEFGHJKMNPQRTVWXYZ`
#### Excludes characters
`ILOSU`
### Usage
```javascript
const gbc = require("geocaching-base-converter")let encodedValue = gbc.encode(1220432, "PR") // PR1QQQP
let decodedValue = gbc.decode("PR1QQQP") // 1220432
```