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

typographic-exclamation-mark

1.0.8 • Public • Published

typographic-exclamation-mark 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 an exclamation point 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-exclamation-mark

Usage

var exclamation = require('typographic-exclamation-mark')
 
exclamation(`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

Keywords

install

npm i typographic-exclamation-mark

Downloadsweekly downloads

32

version

1.0.8

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar
  • avatar