jxom / char-to-ascii

Convert character(s) to their respective ASCII codes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Convert character(s) to their respective ASCII codes.

License:MIT License


Languages

Language:JavaScript 100.0%