ascii-decimal

Get the decimal value of an ASCII character

Usage no npm install needed!

<script type="module">
  import asciiDecimal from 'https://cdn.skypack.dev/ascii-decimal';
</script>

README

ascii-decimal

Get the decimal value of an ASCII character

Build Status

Install

$ npm install --save ascii-decimal

Usage

const decimal = require('ascii-decimal');

decimal('A');
//=> 65

API

asciiDecimal(input)

Returns the decimal value of the ASCII character

input

Type: string

The ASCII character you want to convert to decimal.

License

MIT © Michael Wuergler