0.1.0 • Published 10 years ago

rectify v0.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

Rectify.js npm Version Build Status Coverage Status

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

MIT license