
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
typographic-base
Advanced tools
typography set for fixing common issues
This packages handles for you:
Can be used as textr plugin too.
npm install --save typographic-base
import typographicBase from 'typographic-base';
typographicBase(`Hello -> "world"`, { locale: 'en-us' }); // Hello → “world”
Required
Type: String
Your text.
Type: Object
Default: {}
Mainly because of options.locale
importance. You know better which locale you text belongs to.
Package | Description | Example |
---|---|---|
typographic-apostrophes | Apostrophes in contractions and for possessive case. | rock'n'roll → rock’n’roll |
typographic-quotes | Quotes for your text with respect to locale. | "quotes" → “quotes” |
typographic-apostrophes-for-possessive-plurals | Apostrophes for possessive plurals. | sisters' → sisters’ |
typographic-arrows | Use real arrows. | a <- b → a ← b |
typographic-copyright | Use real copyright symbol. | (C) → © |
typographic-currency | Use the correct symbol of currency. | 1usd → 1$ |
typographic-ellipses | Avoid using periods and spaces. | ... → … |
typographic-em-dashes | Replaces -- to em dash. | -- → — |
typographic-en-dashes | Safely replacing hyphens in a range of values with en dashes only. | (1967-1994) → (1967–1994) |
typographic-math-symbols | Replaces alphabetic math symbols to real symbols. | 3 =< 2 → 3 ≤ 2 |
typographic-registered-trademark | Replaces alphabetic registered trademark to real symbol. | (R) → ® |
typographic-single-spaces | Replace many spaces to one space. | one two → one two |
typographic-trademark | Replaces alphabetic trademark to real symbol. | (TM) → ™ |
MIT © Vladimir Starkov
FAQs
typography set for fixing common issues
The npm package typographic-base receives a total of 1,760 weekly downloads. As such, typographic-base popularity was classified as popular.
We found that typographic-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.