# typographic-em-dashes

> Use them, don’t confuse them

Latest version **1.0.2** (published 2015-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install typographic-em-dashes
pnpm add typographic-em-dashes
yarn add typographic-em-dashes
bun add typographic-em-dashes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-04-16 |
| First published | 2015-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Vladimir Starkov |
| Maintainers | matmuchrapna |
| Keywords | textr, typographic, dashes, emdashes |

## Links

- npm: https://www.npmjs.com/package/typographic-em-dashes
- Repository: https://github.com/matmuchrapna/typographic-em-dashes
- Issues: https://github.com/matmuchrapna/typographic-em-dashes/issues
- npm.io page: https://npm.io/package/typographic-em-dashes

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-04-16
- 1.0.1 — 2015-04-09
- 1.0.0 — 2015-04-09

## README

# typographic-em-dashes

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dependency Status][depstat-image]][depstat-url]
[![DevDependency Status][depstat-dev-image]][depstat-dev-url]

> [Use them, don’t confuse them][rtfm]

Micro module to help eliminate one of the [bad typewriter habits][habits].


## Install

```sh
npm install --save typographic-em-dashes
```


## Usage

```js
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][playground].

[playground]: https://github.com/matmuchrapna/typographic-playground


## License

MIT © [Vladimir Starkov](http://vstarkov.com/)

[rtfm]: http://practicaltypography.com/hyphens-and-dashes.html
[habits]: http://practicaltypography.com/typewriter-habits.html

[npm-url]: https://npmjs.org/package/typographic-em-dashes
[npm-image]: http://img.shields.io/npm/v/typographic-em-dashes.svg

[travis-url]: https://travis-ci.org/matmuchrapna/typographic-em-dashes
[travis-image]: http://img.shields.io/travis/matmuchrapna/typographic-em-dashes.svg

[coveralls-url]: https://coveralls.io/r/matmuchrapna/typographic-em-dashes
[coveralls-image]: http://img.shields.io/coveralls/matmuchrapna/typographic-em-dashes.svg

[depstat-url]: https://david-dm.org/matmuchrapna/typographic-em-dashes
[depstat-image]: https://david-dm.org/matmuchrapna/typographic-em-dashes.svg

[depstat-dev-url]: https://david-dm.org/matmuchrapna/typographic-em-dashes
[depstat-dev-image]: https://david-dm.org/matmuchrapna/typographic-em-dashes/dev-status.svg

---
_Source: https://npm.io/package/typographic-em-dashes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
