to-double-quotes

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i to-double-quotes

Weekly Downloads

72,529

Version

4.0.0

License

MIT

Unpacked Size

2.68 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus