# base45-web

> Encode/decode base45 data - including non-utf8 compliant data

Latest version **1.0.2** (published 2021-06-08) · 0 weekly downloads

## Install

```sh
npm install base45-web
pnpm add base45-web
yarn add base45-web
bun add base45-web
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-06-08 |
| First published | 2021-06-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 0 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dirk-Willem van Gulik |
| Maintainers | maurer-new-media |
| Keywords | base45 |

## Links

- npm: https://www.npmjs.com/package/base45-web
- Repository: https://github.com/pablomaurer/base45-js
- Homepage: https://github.com/ehn-digital-green-development/base45-js
- Issues: https://github.com/pablomaurer/base45-js/issues
- npm.io page: https://npm.io/package/base45-web

## Recent versions

- 1.0.2 (latest) — 2021-06-08
- 1.0.1 — 2021-06-08
- 1.0.0 — 2021-06-08

## README

# Description
Simple base45 (charset of Qr codes, alphanumeric mode) encoder/decoder, which works seamlessly in browsers.

# Install
```
npm i base45-web
```

# Test
Run as 'npm test' to get an idea of what it does.

# Usage
```
const b45 = require("base45-js");

const e = b45.encode(Buffer.from('Hello!','utf-8'))
console.log(e); // Will output %69 VD92EX0"

const d = b45.decode('%69 VD92EX0')
console.log(d); // will output '[72, 101, 108, 108, 111, 33, 33]'

const d = b45.decodeToUtf8String('%69 VD92EX0')
console.log(d); // will output 'Hello!'
```

# Fork notes

## Reason
needed to do a npm release and to fix the typings

## Histroy:
Forked from https://github.com/ehn-dcc-development/base45-js which forked from https://github.com/dirkx/base45-js all credits goes to them!

---
_Source: https://npm.io/package/base45-web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
