typographic-arrows
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ |
{ | ||
"name": "typographic-arrows", | ||
"description": "Micro module for real arrows", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"keywords": [ | ||
@@ -18,4 +18,7 @@ "typographic", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"author": "Andrey Polischuk <andre.polischuk@gmail.com>", | ||
"license": "MIT" | ||
} |
# typographic-arrows [](https://travis-ci.org/andrepolischuk/typographic-arrows) | ||
> Use real arrows, not alphabetic substitutes | ||
Micro module for real arrows | ||
@@ -8,3 +10,3 @@ | ||
```sh | ||
$ npm install typographic-arrows | ||
$ npm install --save typographic-arrows | ||
``` | ||
@@ -15,9 +17,10 @@ | ||
```js | ||
var arrows = require('typographic-arrows') | ||
var arrows = require('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 | ||
arrows('a => b'); // a ⇒ b | ||
arrows('a <=> b'); // a ⇔ b | ||
``` | ||
@@ -24,0 +27,0 @@ |
@@ -0,0 +0,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29
11.54%2087
-4.44%6
-14.29%