Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

✒️ Automated typographic quotation and punctuation marks

Resources

License

Releases

No releases published

Packages

No packages published