1.0.17 • Published 18 hours ago

typographic-permille v1.0.17

Weekly downloads
452
License
MIT
Repository
github
Last release
18 hours ago

typographic-permille Build Status Coverage Status

Micro module to replace %o with and optionally replace the preceding space.

This is meant for typography, where %o should be replaced by a per mille sign (en, fr). This is mainly meant for French typography, it replaces the space preceding a per mille 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-permille

Usage

var permille = require('typographic-permille')

permille(`Top 1%o.`, { locale: 'en' }) // Top 1‰

permille(`Top 1 %o.`, { locale: 'fr' }) // Top 1 ‰
// this char   ^ will be replaced by a narrow no-break space

This module can also be used through textr.

License

MIT © Zeste de Savoir

1.0.17

18 hours ago

1.0.16

3 years ago

1.0.15

4 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago