Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

to-single-quotes

3.0.0 • Public • Published

to-single-quotes Build Status

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

Install

$ npm install --save to-single-quotes

Usage

const toSingleQuotes = require('to-single-quotes');
 
toSingleQuotes('I love "unicorns" \'and\' "ponies"');
//=> "I love 'unicorns' 'and' 'ponies'"

Related

License

MIT © Sindre Sorhus

install

npm i to-single-quotes

Downloadsweekly downloads

64,812

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability