All Projects → bevacqua → Beautify Text

bevacqua / Beautify Text

Licence: mit
✒️ Automated typographic quotation and punctuation marks

Programming Languages

javascript
184084 projects - #8 most used programming language

beautify-text Build Status

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].