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

typographic-em-dashes

1.0.2 • Public • Published

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

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

install

npm i typographic-em-dashes

Downloadsweekly downloads

35

version

1.0.2

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar