Skip to content

mason-lang/typescript-char

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

Contribute

Accepting PRs if you think any important characters are missing.

About

Character code enumeration for TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published