beautify-text

1.0.0 • Public • Published

beautify-text Build Status

Automated typographhic quotation and punctuation marks

install

$ npm install --save beautify-text

features

Prettifies multiple 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"'));
// -> 'a \u2014 “b ™ c”'

license

MIT © Nicolas Bevacqua

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.02

Package Sidebar

Install

npm i beautify-text

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bevacqua