Skip to content

shinnn/ascii-control-char-codes

Repository files navigation

ascii-control-char-codes

npm version Build Status

All character codes of ASCII control characters

import asciiControlCharacterCodes from 'ascii-control-char-codes';

asciiControlCharacterCodes; //=> [0, 1, ... 31, 127]

// '\n' is one of the ASCII control characters
asciiControlCharacterCodes.includes('\n'.charCodeAt(0)); //=> true

// 'A' is not a control character
asciiControlCharacterCodes.includes('A'.charCodeAt(0)); //=> false

Installation

Use npm.

npm install ascii-control-char-codes

API

caretNotationCharacters

Type: integer[]

License

Creative Commons Zero v1.0 Universal