rectify

0.1.0 • Public • Published

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

/rectify/

    Package Sidebar

    Install

    npm i rectify

    Weekly Downloads

    9

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • yuanqing