0.0.0 • Published 8 years ago

typescript-char v0.0.0

Weekly downloads
6,239
License
Unlicense
Repository
github
Last release
8 years ago

Typescript character code enumeration. Lets you avoid using magic numbers. Great for parsers.

This is a "header-only" library, conisting only of a .d.ts file.

View all characters here.

Install

# Npm
npm install typescript-char --save-dev

# Latest
npm install mason-lang/typescript-char --save-dev

Use

import Char from 'typescript-char'

const x: Char = Char.OpenBrace
console.log(String.fromCharCode(x))