# typographic-apostrophes

> Make sure they’re curly and point downward

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

## Install

```sh
npm install typographic-apostrophes
pnpm add typographic-apostrophes
yarn add typographic-apostrophes
bun add typographic-apostrophes
```

## 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.1.1 |
| Published | 2015-04-16 |
| First published | 2015-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Vladimir Starkov |
| Maintainers | matmuchrapna |
| Keywords | textr, typographic, quotes, apostrophes |

## Links

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

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-04-16
- 1.1.0 — 2015-04-16
- 1.0.2 — 2015-04-05
- 1.0.1 — 2015-04-05
- 1.0.0 — 2015-04-05

## README

# typographic-apostrophes

[![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]

> [Make sure they’re curly and point downward][rtfm]

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


## Install

```sh
npm install --save typographic-apostrophes
```


## Usage

Use typographic apostrophes in con­trac­tions and for pos­ses­sive case. This module don't cover posessive plurals, because it’s impossible to distinguish it from single closing quote.

That's why I created [typographic-apostrophes-for-possessive-plurals][plurals], but it can be used safely only if there are zero closing quotes in the input; this can be achieved by [typographic-quotes][quotes]. That’s why for ideal result you should use all three modules in the chain: `apostrophes → quotes → apostrophes-for-possessive-plurals` (order is important).

[plurals]: https://www.npmjs.com/package/typographic-apostrophes-for-possessive-plurals
[quotes]: https://www.npmjs.com/package/typographic-quotes

```js
var apostrophes = require('typographic-apostrophes');

apostrophes(`I'm looking forward`);        // I’m looking forward
apostrophes(`Don't do it!`);               // Don’t do it!
apostrophes(`as in the eagle's feathers`); // as in the eagle’s feathers
apostrophes(`in one month's time`);        // in one month’s time
apostrophes(`'60s and '80s`);              // ’60s and ’80s
apostrophes(`rock'n'roll`);                // rock’n’roll
apostrophes(`rock 'n' roll`);              // rock ’n’ roll
```

## 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]: practicaltypography.com/apostrophes.html
[habits]: http://practicaltypography.com/typewriter-habits.html

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

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

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

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

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

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