Package Exports
- typographic-base
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typographic-base) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-baseUsage
import typographicBase from 'typographic-base';
typographicBase(`Hello -> "world"`, { locale: 'en-us' }); // Hello → “world”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