beautify-text-cli

Automated typographic quotation and punctuation marks

Usage no npm install needed!

<script type="module">
  import beautifyTextCli from 'https://cdn.skypack.dev/beautify-text-cli';
</script>

README

beautify-text-cli

Automated typographic quotation and punctuation marks. CLI for bevacqua/beautify-text.

Travis (.org) npm license

Install

$ npm install --global beautify-text-cli

Usage

Input text via stdin or files. See output on stdout.

$ # Piping
$ echo '"Hello world"' | beautify
“Hello world”

$ # Interactive stdin
$ beautify
"Hello world"
“Hello world”

$ # Files
$ beautify files/*.txt >> combined.txt

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 ±

License

MIT © Darshak Parikh