1.0.1 • Published 7 years ago
beautify-text-cli v1.0.1
beautify-text-cli
Automated typographic quotation and punctuation marks. CLI for bevacqua/beautify-text.
Install
$ npm install --global beautify-text-cliUsage
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.txtFeatures
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