typographic-arrows
Advanced tools
Comparing version 0.1.3 to 1.0.0
10
index.js
@@ -1,12 +0,4 @@ | ||
'use strict'; | ||
/** | ||
* Expose transformer | ||
* | ||
* @param {String} input | ||
* @api public | ||
*/ | ||
module.exports = function(input) { | ||
module.exports = function (input) { | ||
return input | ||
@@ -13,0 +5,0 @@ .replace(/<->/gim, '↔') |
{ | ||
"name": "typographic-arrows", | ||
"description": "Micro module for real arrows", | ||
"version": "0.1.3", | ||
"version": "1.0.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "typographic", |
@@ -1,6 +0,6 @@ | ||
# typographic-arrows [![Build Status](https://travis-ci.org/andrepolischuk/typographic-arrows.svg?branch=master)](https://travis-ci.org/andrepolischuk/typographic-arrows) | ||
# typographic-arrows [![Build Status][travis-image]][travis-url] | ||
> Use real arrows, not alphabetic substitutes | ||
> Use real arrows, not alphabetic substitutes | ||
Micro module for real arrows | ||
Micro module for real arrows | ||
@@ -13,7 +13,6 @@ ## Install | ||
## Use | ||
## Usage | ||
```js | ||
var arrows = require('typographic-arrows'); | ||
arrows('a <- b'); // a ← b | ||
@@ -29,2 +28,5 @@ arrows('a -> b'); // a → b | ||
MIT | ||
MIT | ||
[travis-url]: https://travis-ci.org/andrepolischuk/typographic-arrows | ||
[travis-image]: https://travis-ci.org/andrepolischuk/typographic-arrows.svg?branch=master |
40
test.js
@@ -1,31 +0,27 @@ | ||
'use strict'; | ||
var assert = require('assert'); | ||
var arrows = require('./'); | ||
var assert = require('assert'); | ||
describe('arrows(input)', function() { | ||
it('should fix left', function() { | ||
assert(arrows('a <- b') === 'a ← b'); | ||
}); | ||
it('should fix left', function () { | ||
assert(arrows('a <- b') === 'a ← b'); | ||
}); | ||
it('should fix right', function() { | ||
assert(arrows('a -> b') === 'a → b'); | ||
}); | ||
it('should fix right', function () { | ||
assert(arrows('a -> b') === 'a → b'); | ||
}); | ||
it('should fix left-right', function() { | ||
assert(arrows('a <-> b') === 'a ↔ b'); | ||
}); | ||
it('should fix left-right', function () { | ||
assert(arrows('a <-> b') === 'a ↔ b'); | ||
}); | ||
it('should fix double left', function() { | ||
assert(arrows('a <= b') === 'a ⇐ b'); | ||
}); | ||
it('should fix double left', function () { | ||
assert(arrows('a <= b') === 'a ⇐ b'); | ||
}); | ||
it('should fix double right', function() { | ||
assert(arrows('a => b') === 'a ⇒ b'); | ||
}); | ||
it('should fix double right', function () { | ||
assert(arrows('a => b') === 'a ⇒ b'); | ||
}); | ||
it('should fix double left-right', function() { | ||
assert(arrows('a <=> b') === 'a ⇔ b'); | ||
}); | ||
it('should fix double left-right', function () { | ||
assert(arrows('a <=> b') === 'a ⇔ b'); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2181
7
1
31
31