typographic-base
typography set for fixing common issues
This packages handles for you:
- quotes, apostrophes, ellipses, and spaces as well as dashes
- plus arrows, copyright, trademark, math and currency symbols
Can be used as textr plugin too.
Install
npm install --save typographic-base
Usage
import typographicBase from 'typographic-base';
typographicBase(`Hello -> "world"`, { locale: 'en-us' });
API
typographicBase(input, options)
input
Required
Type: String
Your text.
options
Type: Object
Default: {}
Mainly because of options.locale
importance. You know better which locale you text belongs to.
License
MIT © Vladimir Starkov