to-single-quotes
Convert matching double-quotes to single-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-single-quotes 
SYNC missed versions from official npm registry.

to-single-quotes Build Status

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

Install

$ npm install --save to-single-quotes

Usage

const toSingleQuotes = require('to-single-quotes');

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

Related

License

MIT © Sindre Sorhus

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

13 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 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

Copyright 2014 - 2016 © taobao.org |