node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

to-single-quotes

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