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

to-single-quotes

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

Install

$ npm install to-single-quotes

Usage

import toSingleQuotes from 'to-single-quotes';

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

Related

Current Tags

  • 4.0.0                                ...           latest (6 years ago)

14 Versions

  • 4.0.0                                ...           6 years ago
  • 3.0.0                                ...           10 years ago
  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.4                                ...           11 years ago
  • 1.0.3                                ...           11 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.3.2                                ...           13 years ago
  • 0.3.1                                ...           13 years ago
  • 0.3.0                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 33
Today 0
This Week 0
This Month 33
Last Day 0
Last Week 14
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE