node package manager

to-double-quotes

to-double-quotes Build Status

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

Install

$ npm install --save to-double-quotes

Usage

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

Related

License

MIT © Sindre Sorhus