Needless Patchouli Manufacture
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

typographic-en-dashes

1.0.1 • Public • Published

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

install

npm i typographic-en-dashes

Downloadsweekly downloads

65

version

1.0.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar