# utf8-string-bytes

> Convert a string to utf8 byte array or vice versa.

Latest version **1.0.3** (published 2017-12-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install utf8-string-bytes
pnpm add utf8-string-bytes
yarn add utf8-string-bytes
bun add utf8-string-bytes
```

## 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.3 |
| Published | 2017-12-13 |
| First published | 2017-04-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leonardosnt |
| Maintainers | leonardosnt |
| Keywords | utf-8, string, bytes, array |

## Links

- npm: https://www.npmjs.com/package/utf8-string-bytes
- npm.io page: https://npm.io/package/utf8-string-bytes

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-12-13
- 1.0.2 — 2017-04-17
- 1.0.1 — 2017-04-15

## README

```javascript
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```

Convert a string to an array of bytes and vice versa.

```javascript
import { utf8ByteArrayToString, stringToUtf8ByteArray } from 'utf8-string-bytes';

let fromString = stringToUtf8ByteArray('Olá'); // [79, 108, 195, 161]
let toString = utf8ByteArrayToString([79, 108, 195, 161]); // Olá
```

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