Home

Awesome

to-single-quotes

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

Install

$ npm install to-single-quotes

Usage

import toSingleQuotes from 'to-single-quotes';

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

Related