Skip to content

iamstarkov/typographic-math-symbols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typographic-math-symbols

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Use real symbols, not alphabetic characters

Micro module to help eliminate one of the bad typewriter habits.

Install

npm install --save typographic-math-symbols

Usage

var math = require('typographic-math-symbols');

math(`2 x 3 = 6`);  // 2 × 3 = 6
math(`3 - 2 = 1`);  // 3 − 2 = 1
math(`3 =< 2`);     // 3 ≤ 2
math(`4 >= 4`);     // 4 ≥ 4
math(`5 +- 1`);     // 5 ± 1
math(`10 -+ 1`);    // 10 ∓ 1
math(`2 << 100`);   // 2 ≪ 10000
math(`999 >> 5`);   // 999999 ≫ 5

License

MIT © Vladimir Starkov

About

Use real symbols, not alphabetic characters

Resources

Stars

Watchers

Forks

Packages

No packages published