New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typographic-arrows

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typographic-arrows - npm Package Compare versions

Comparing version 0.1.3 to 1.0.0

.editorconfig

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

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc