charcode
v1.0.0
Published
Get the charcode of a character.
Downloads
240
Maintainers
Readme
Charcode
Get the charcode of a character.
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.