Home

Awesome

to-double-quotes

Convert matching single-quotes to double-quotes: I 'love' unicornsI "love" unicorns

Install

$ npm install to-double-quotes

Usage

import toDoubleQuotes from 'to-double-quotes';

toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> 'I love "unicorns" "and" "ponies"'

Related