typographic-em-dashes
v1.0.2
Published
Use them, don’t confuse them
Downloads
16,489
Maintainers
Readme
typographic-em-dashes
Micro module to help eliminate one of the bad typewriter habits.
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 playground.
License
MIT © Vladimir Starkov