to-double-quotes
Convert matching single-quotes to double-quotes: I 'love' unicorns → I "love" unicorns
Last updated 5 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

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

Install

$ npm install to-double-quotes

Usage

import toDoubleQuotes from 'to-double-quotes';

toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> 'I love "unicorns" "and" "ponies"'

Related

Current Tags

  • 4.0.0                                ...           latest (5 years ago)

11 Versions

  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           9 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           12 years ago
  • 0.3.2                                ...           12 years ago
  • 0.3.1                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |