to-double-quotes

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

to-double-quotes

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

$ npm install --save to-double-quotes
const toDoubleQuotes = require('to-double-quotes');
 
toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> 'I love "unicorns" "and" "ponies"' 

MIT © Sindre Sorhus