JSPM

typographic-base

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1780
  • Score
    100M100P100Q120074F
  • License MIT

typography set for fixing common issues

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

NPM version Build Status Coveralls Status Dependency Status

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' }); // 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