to-single-quotes

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i to-single-quotes

Weekly Downloads

72,088

Version

4.0.0

License

MIT

Unpacked Size

4.23 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus