typographic-arrows

1.0.3 • Public • Published

typographic-arrows Build Status

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

Package Sidebar

Install

npm i typographic-arrows

Weekly Downloads

2,364

Version

1.0.3

License

MIT

Last publish

Collaborators

  • andrepolischuk