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

/typographic-apostrophes-for-possessive-plurals/

    Package Sidebar

    Install

    npm i typographic-apostrophes-for-possessive-plurals

    Weekly Downloads

    3,834

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • iamstarkov