typographic-em-dashes

Use them, don’t confuse them

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
typographic-em-dashes
201.0.29 years ago9 years agoMinified + gzip package size for typographic-em-dashes in KB

Readme

typographic-em-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.

Install

npm install --save typographic-em-dashes

Usage

var emdashes = require('typographic-em-dashes');

emdashes(`--`); // —
emdashes(`foo -- bar`); // foo — bar
emdashes(`foo — bar`); // foo — bar

Real world examples

Check complex usage with real world examples in typography playgroundplayground.

License

MIT © Vladimir Starkov