typographic-percent

1.0.16 • Public • Published

typographic-percent 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 percent sign 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-percent

Usage

var percent = require('typographic-percent')

percent(`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

Readme

Keywords

Package Sidebar

Install

npm i typographic-percent

Weekly Downloads

19

Version

1.0.16

License

MIT

Unpacked Size

4.83 kB

Total Files

7

Last publish

Collaborators

  • situphen
  • talone