/char-to-ascii

Convert character(s) to their respective ASCII codes.

Primary LanguageJavaScriptMIT LicenseMIT

char-to-ascii

Convert character(s) to their respective ASCII codes.

Install

$ npm install --save char-to-ascii

Usage

const charToAscii = require('char-to-ascii');

charToAscii('unicorns');
//=> [117, 110, 105, 99, 111, 114, 110, 115]

API

charToAscii(input)

input

Type: string

The set of characters you want to convert into ASCII.

License

MIT © jxom