Automated typographic quotation and punctuation marks
$ npm install --save beautify-text
Prettifies several typographic marks, some cases are outlined below.
- Single and double quotes
- Apostrophes
- Marks like
(tm)
,(c)
,(r)
and(p)
into™
,©
,®
and§
- Long dashes, like
---
into—
..
,...
, etc into…
(but?..
,!..
aren't transformed)+-
into±
beautifyText('a --- "b (tm) c" -- d');
// -> 'a — “b ™ c” – d'
MIT © Nicolas Bevacqua