to-double-quotes
Convert matching single-quotes to double-quotes: I 'love' unicorns → I "love" unicorns
Last updated 3 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install to-double-quotes 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

10 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.3.2                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 15
This Week 107
This Month 107
Last Day 23
Last Week 178
Last Month 778
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |