0.1.0 • Published 11 years ago
rectify v0.1.0
Rectify.js

Unsmarten your quotes, dashes, and ellipses.
Usage
rectify('“Who’s on first?”'); //=> '"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
License
0.1.0
11 years ago