Package Exports
- typographic-em-dashes
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typographic-em-dashes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
typographic-em-dashes
Micro module to help eliminate one of the bad typewriter habits.
Install
npm install --save typographic-em-dashesUsage
var emdashes = require('typographic-em-dashes');
emdashes(`--`); // —
emdashes(`foo -- bar`); // foo — bar
emdashes(`foo — bar`); // foo — barReal world examples
Check complex usage with real world examples in typography playground.
License
MIT © Vladimir Starkov