# isomorphic-textencoder

> encode/decode Uint8Arrays to strings

Latest version **1.0.1** (published 2018-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install isomorphic-textencoder
pnpm add isomorphic-textencoder
yarn add isomorphic-textencoder
bun add isomorphic-textencoder
```

## 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.1 |
| Published | 2018-11-23 |
| First published | 2018-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | William Hilton |
| Maintainers | wmhilton |
| Keywords | textencoder, isomorphic, utf8, uint8array, string |

## Links

- npm: https://www.npmjs.com/package/isomorphic-textencoder
- Repository: https://github.com/wmhilton/isomorphic-textencoder
- Homepage: https://github.com/wmhilton/isomorphic-textencoder#readme
- Issues: https://github.com/wmhilton/isomorphic-textencoder/issues
- npm.io page: https://npm.io/package/isomorphic-textencoder

## Dependencies (1)

- [fast-text-encoding](https://npm.io/package/fast-text-encoding.md) ^1.0.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-11-23
- 1.0.0 — 2018-11-19

## README

# isomorphic-textencoder
encode/decode Uint8Arrays to strings

This is just a thin wrapper that provides an isomorphic API.
- To perform UTF8 conversion in the browser it uses the native TextEncoder.
  - It includes a polyfill so IE11 / Edge aren't left out.
- In Node it uses native Buffer methods.

## Installation

```sh
npm install isomorphic-textencoder --save
```

## Usage

```js
import { encode, decode } from "isomorphic-textencoder";

encode('Hello') // Uint8Array [ 72, 101, 108, 108, 111 ]

decode(new Uint8Array([72, 101, 108, 108, 111])) // 'Hello'
```

## Dependencies

None

## Dev Dependencies

None

## License

MIT

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