beautify-text
Automated typographic quotation and punctuation marks
install
$ npm install --save beautify-text
features
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(text)
beautifyText('a --- "b (tm) c" -- d');
// -> 'a โ โb โข cโ โ d'
license
MIT ยฉ Nicolas Bevacqua