Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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
```