Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-single-quotes

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-single-quotes - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "to-single-quotes",
"version": "0.2.0",
"version": "0.3.0",
"description": "Convert matching double-quotes to single-quotes: I \"love\" unicorns => I 'love' unicorns",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

# to-single-quotes [![Build Status](https://travis-ci.org/sindresorhus/to-single-quotes.png?branch=master)](http://travis-ci.org/sindresorhus/to-single-quotes)
# to-single-quotes [![Build Status](https://travis-ci.org/sindresorhus/to-single-quotes.svg?branch=master)](https://travis-ci.org/sindresorhus/to-single-quotes)

@@ -72,9 +72,5 @@ > Convert matching double-quotes to single-quotes: `I "love" unicorns` => `I 'love' unicorns`

Or using the command line
```
to-single-quotes path/to/*.js
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)

@@ -11,3 +11,3 @@ /*!

var toSingleQuotes = function (str) {
return str.replace(/(?:\\*)?"[^"]*"/g, function (match) {
return str.replace(/(?:\\*)?"([^"\\]*\\")*[^"]*"/g, function (match) {
return match

@@ -14,0 +14,0 @@ .replace(/\\"/g, '"') // unescape double-quotes

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc