Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shinnn/ascii-control-char-codes

All character codes of ASCII control characters
https://github.com/shinnn/ascii-control-char-codes

array ascii-control-characters character-codes javascript

Last synced: 27 days ago
JSON representation

All character codes of ASCII control characters

Awesome Lists containing this project

README

        

# ascii-control-char-codes

[![npm version](https://img.shields.io/npm/v/ascii-control-char-codes.svg)](https://www.npmjs.com/package/ascii-control-char-codes)
[![Build Status](https://travis-ci.com/shinnn/ascii-control-char-codes.svg?branch=master)](https://travis-ci.com/shinnn/ascii-control-char-codes)

All character codes of ASCII control characters

```javascript
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](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).

```
npm install ascii-control-char-codes
```

## API

### caretNotationCharacters

Type: `integer[]`

## License

[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)