char-to-string
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

char-to-string

NPM TypeScript Coverage Status

Convert a character or character code to string.

If I should maintain this repo, please ⭐️ GitHub stars

DM me on Twitter if you have questions or suggestions. Twitter


Installation

yarn add char-to-string
npm install char-to-string
pnpm add char-to-string

API

Usage

import charToString from "char-to-string";

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

charToString(97); // "a"

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

Types

import charToString from "char-to-string";

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

Dev Dependencies

  • autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.

License license

MIT

Package Sidebar

Install

npm i char-to-string

Weekly Downloads

1,137

Version

2.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

8

Last publish

Collaborators

  • bconnorwhite