typographic-en-dashes

Use them, don’t confuse them

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
typographic-en-dashes
211.0.19 years ago9 years agoMinified + gzip package size for typographic-en-dashes in KB

Readme

typographic-en-dashes
!NPM versionnpm-imagenpm-url !Build Statustravis-imagetravis-url !Coveralls Statuscoveralls-imagecoveralls-url !Dependency Statusdepstat-imagedepstat-url !DevDependency Statusdepstat-dev-imagedepstat-dev-url
Use them, don’t confuse themrtfm

Micro module to help eliminate one of the bad typewriter habitshabits. 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 playgroundplayground.

License

MIT © Vladimir Starkov