Rectify.js
Unsmarten your quotes, dashes, and ellipses.
Usage
; //=> '"Who\'s on first?"'
The mapping from smart to raw is as follows:
‘ => '
’ => '
“ => "
” => "
– => --
— => ---
… => ...
API
rectify(str)
Returns the str
with quotes, dashes, and ellipses replaced with their raw equivalents.
Installation
Install via npm:
$ npm i --save rectify