Socket
Book a DemoInstallSign in
Socket

beautify-text

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautify-text

Automated typographhic quotation and punctuation marks

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 07 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts