Socket
Socket
Sign inDemoInstall

typographic-en-dashes

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    typographic-en-dashes

Use them, don’t confuse them


Version published
Weekly downloads
7K
increased by12.4%
Maintainers
1
Install size
4.50 kB
Created
Weekly downloads
 

Readme

Source

typographic-en-dashes

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Use them, don’t confuse them

Micro module to help eliminate one of the bad typewriter habits. Safely replacing hyphens in a range of values with en dashes only.

Install

npm install --save typographic-en-dashes

Usage

var endashes = require('typographic-en-dashes');

endashes(`Kurt Cobain (1967-1994)`); // Kurt Cobain (1967–1994)

Real world examples

Check complex usage with real world examples in typography playground.

License

MIT © Vladimir Starkov

Keywords

FAQs

Last updated on 16 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc