Make sure they’re curly and point downward
npm install 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].
``sh`
npm install --save typographic-apostrophes
Use typographic apostrophes in contractions and for possessive 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 forwardDon't do it!
apostrophes(); // Don’t do it!as in the eagle's feathers
apostrophes(); // as in the eagle’s feathersin one month's time
apostrophes(); // in one month’s time'60s and '80s
apostrophes(); // ’60s and ’80srock'n'roll
apostrophes(); // rock’n’rollrock 'n' roll
apostrophes(); // rock ’n’ roll``
Check complex usage with real world examples in [typography playground][playground].
[playground]: https://github.com/matmuchrapna/typographic-playground
MIT © Vladimir Starkov
[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