# char-to-string

> Convert a character or character code to string

Latest version **2.0.0** (published 2023-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install char-to-string
pnpm add char-to-string
yarn add char-to-string
bun add char-to-string
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-01-10 |
| First published | 2020-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Connor White |
| Maintainers | bconnorwhite |
| Keywords | char, to, string, code, charcode, number, buffer |

## Links

- npm: https://www.npmjs.com/package/char-to-string
- Repository: https://github.com/bconnorwhite/char-to-string
- npm.io page: https://npm.io/package/char-to-string

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

- 2.0.0 (latest) — 2023-01-10
- 1.0.0 — 2020-10-03

## README

<!--BEGIN HEADER-->
<div id="top" align="center">
  <h1>char-to-string</h1>
  <a href="https://npmjs.com/package/char-to-string">
    <img alt="NPM" src="https://img.shields.io/npm/v/char-to-string.svg">
  </a>
  <a href="https://github.com/bconnorwhite/char-to-string">
    <img alt="TypeScript" src="https://img.shields.io/github/languages/top/bconnorwhite/char-to-string.svg">
  </a>
  <a href="https://coveralls.io/github/bconnorwhite/char-to-string?branch=master">
    <img alt="Coverage Status" src="https://img.shields.io/coveralls/github/bconnorwhite/char-to-string.svg?branch=master">
  </a>
</div>

<br />

<blockquote align="center">Convert a character or character code to string.</blockquote>

<br />

_If I should maintain this repo, please ⭐️_
<a href="https://github.com/bconnorwhite/char-to-string">
  <img align="right" alt="GitHub stars" src="https://img.shields.io/github/stars/bconnorwhite/char-to-string?label=%E2%AD%90%EF%B8%8F&style=social">
</a>

_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._
<a href="https://twitter.com/bconnorwhite">
  <img align="right" alt="Twitter" src="https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite">
</a>

---
<!--END HEADER-->

## Installation

```sh
yarn add char-to-string
```

```sh
npm install char-to-string
```

```sh
pnpm add char-to-string
```

## API

### Usage
```ts
import charToString from "char-to-string";

charToString("a"); // "a"

charToString(97); // "a"

charToString("abc"); // "a"
```

### Types
```ts
import charToString from "char-to-string";

function charToString(char: string | number): string;
```

<!--BEGIN FOOTER-->

<br />

<h2>Dev Dependencies</h2>

- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.


<br />

<h2 id="license">License <a href="https://opensource.org/licenses/MIT"><img align="right" alt="license" src="https://img.shields.io/npm/l/char-to-string.svg"></a></h2>

[MIT](https://opensource.org/licenses/MIT)
<!--END FOOTER-->

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