charcode
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Charcode Travis CI Build Status

Get the charcode of a character.

NPM Badge

Install

npm install charcode

Usage

const charcode = require("charcode");
 
charcode("a");
//=> 97
 
charcode.from(97);
//=> "a"

API

charcode(input)

input

Type: string

The character to get the charcode of.

charcode.from(input)

input

Type: number

The charcode to get the character of.

/charcode/

    Package Sidebar

    Install

    npm i charcode

    Weekly Downloads

    27

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.41 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb