@f0c1s/printable-ascii
v2018.11.12
Published
Ascii codes and other related information taken from https://www.freeformatter.com/html-entities.html#ascii-characters
Downloads
1
Readme
Ascii codes and other related information taken from https://www.freeformatter.com/html-entities.html#ascii-characters
Installation npm i @f0c1s/printable-ascii
Usage var pa = require('@f0c1s/printable-ascii')
pa.getPrintable(100)
{ number: 'd',
description: 'Lowercase d',
character: 'd',
charCode: '100;' }
pa.getPrintable(10)
{ AssertionError [ERR_ASSERTION]: Cannot get invalid printable value. Call isPrintableCode(10) first.
at Object.getPrintable (/Users/anusaini/Code/npm/printable-ascii/index.js:14:12)
generatedMessage: false,
name: 'AssertionError [ERR_ASSERTION]',
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '==' }