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

typographic-apostrophes-for-possessive-plurals

1.0.5 • Public • Published

typographic-apostrophes-for-possessive-plurals

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Make sure they’re curly and point downward even for possessive plurals

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

Install

npm install --save typographic-apostrophes-for-possessive-plurals

Usage

This module gives you typographic apostrophes for posessive plurals and only. Because it’s impossible to distinguish apostrophes from single closing quote, I asume zero closing quotes in input text, so it's safe to make "s' "→"s’ " replacement. To achieve zero closing quotes in input use apostrophes and quotes typographic modules before this one.

var apostrophesForPlurals = require('typographic-apostrophes-for-possessive-plurals');
 
apostrophesForPlurals(`My sisters' friends' investments`);
                    // My sisters’ friends’ investments

Real world examples

Check complex usage with real world examples in typography playground.

License

MIT © Vladimir Starkov

install

npm i typographic-apostrophes-for-possessive-plurals

Downloadsweekly downloads

40

version

1.0.5

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar