@cjser/to-double-quotes
v4.0.0-cjser.2
Published
Convert matching single-quotes to double-quotes: I 'love' unicorns → I "love" unicorns
Maintainers
Readme
to-double-quotes
Convert matching single-quotes to double-quotes:
I 'love' unicorns→I "love" unicorns
Install
$ npm install to-double-quotesUsage
import toDoubleQuotes from 'to-double-quotes';
toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> 'I love "unicorns" "and" "ponies"'Related
- to-double-quotes-cli - CLI for this module
- to-single-quotes - Convert matching double-quotes to single-quotes
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/to-double-quotes
