to-double-quotes
Convert matching single-quotes to double-quotes: I 'love' unicorns
=> I "love" unicorns
See to-single-quotes for the inverse.
Install
Download manually or with a package-manager.
npm install --save to-double-quotes
Or globally if you want to use it as a CLI app:
npm install --global to-double-quotes
You can then use it in your terminal like:
to-double-quotes src/*.txt
(make sure to have a backup before running this!)
Or pipe something to it:
cat input.txt | to-double-quotes > output.txt
bower install --save to-double-quotes
component install sindresorhus/to-double-quotes
Example
Node.js
var toDoubleQuotes = require('to-double-quotes');
Bower
<script src="bower_components/to-double-quotes/to-double-quotes.js"></script>
Usage
toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
License
MIT © Sindre Sorhus