typographic-arrows
v1.0.3
Published
Micro module for real arrows
Downloads
10,637
Maintainers
Readme
typographic-arrows
Use real arrows, not alphabetic substitutes
Micro module for real arrows.
Install
npm install --save typographic-arrows
Usage
import arrows from 'typographic-arrows';
arrows('a <- b'); // a ← b
arrows('a -> b'); // a → b
arrows('a <-> b'); // a ↔ b
arrows('a <= b'); // a ⇐ b
arrows('a => b'); // a ⇒ b
arrows('a <=> b'); // a ⇔ b
API
arrows(input)
input
Type: string
Text for transform.
License
MIT