Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

typographic-colon

zestedesavoir3.1kMIT1.0.18

Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.

textr

readme

typographic-colon Build Status Coverage Status

Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.

This is mainly meant for French typography, it replaces the space preceding a colon by a narrow no-break space (en, fr).

Submit a PR to src/db.js to add support for your locale.

Install

npm:

npm install --save typographic-colon

Usage

var colon = require('typographic-colon')

colon(`Exemple : voici.`, { locale: 'fr' })
// this char  ^ will be replaced by a narrow no-break space

This module can also be used through textr.

License

MIT © Zeste de Savoir