# @polkadot/x-textencoder

> A TextDecoder replacement

Latest version **14.0.3** (published 2026-03-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @polkadot/x-textencoder
pnpm add @polkadot/x-textencoder
yarn add @polkadot/x-textencoder
bun add @polkadot/x-textencoder
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 14.0.3 |
| Published | 2026-03-23 |
| First published | 2020-09-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 261 |
| Author | Jaco Greeff |
| Maintainers | jacogr, polkadotjs, paritytech-ci |

## Links

- npm: https://www.npmjs.com/package/@polkadot/x-textencoder
- Repository: https://github.com/polkadot-js/common
- Homepage: https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme
- Issues: https://github.com/polkadot-js/common/issues
- npm.io page: https://npm.io/package/@polkadot/x-textencoder

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.8.0
- [@polkadot/x-global](https://npm.io/package/@polkadot/x-global.md) 14.0.3

## Recent versions

- 14.0.3 (latest) — 2026-03-23
- 11.1.4-12 (beta) — 2023-04-13
- 14.0.2 — 2026-03-16
- 14.0.1 — 2025-12-09
- 13.5.9 — 2025-11-25
- 13.5.8 — 2025-11-11
- 13.5.7 — 2025-10-13
- 13.5.6 — 2025-08-26
- 13.5.5 — 2025-08-11
- 13.5.4 — 2025-07-28
- 13.5.3 — 2025-07-01
- 13.5.2 — 2025-06-17
- 13.5.1 — 2025-05-19
- 13.4.4 — 2025-04-14
- 13.4.3 — 2025-02-17
- … 735 more at https://npm.io/package/@polkadot/x-textencoder/versions

## README

# @polkadot/x-textencoder

A cross-environment TextEncoder.

Install it via `yarn add @polkadot/x-textencoder`

```js
import { TextEncoder } from '@polkadot/x-textencoder';

...
const encoder = new TextEncoder();
```

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