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

to-double-quotes

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-double-quotes - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

11

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

@@ -12,3 +12,2 @@ "license": "MIT",

},
"bin": "cli.js",
"engines": {

@@ -21,8 +20,5 @@ "node": ">=0.10.0"

"files": [
"index.js",
"cli.js"
"index.js"
],
"keywords": [
"cli-app",
"cli",
"normalize",

@@ -41,5 +37,2 @@ "quotes",

],
"dependencies": {
"get-stdin": "^3.0.0"
},
"devDependencies": {

@@ -46,0 +39,0 @@ "ava": "*",

33

readme.md
# to-double-quotes [![Build Status](https://travis-ci.org/sindresorhus/to-double-quotes.svg?branch=master)](https://travis-ci.org/sindresorhus/to-double-quotes)
> Convert matching single-quotes to double-quotes: `I 'love' unicorns` => `I "love" unicorns`
> Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`
## Usage
## Install

@@ -12,32 +12,17 @@ ```

## Usage
```js
var toDoubleQuotes = require('to-double-quotes');
const toDoubleQuotes = require('to-double-quotes');
toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> I love "unicorns" "and" "ponies"
//=> 'I love "unicorns" "and" "ponies"'
```
## CLI
```
$ npm install --global to-double-quotes
```
```
$ to-double-quotes --help
Usage
$ to-double-quotes <string>
$ echo <string> | to-double-quotes
Example
$ to-double-quotes "I love 'unicorns'"
I love "unicorns"
```
## Related
See [to-single-quotes](https://github.com/sindresorhus/to-single-quotes) for the inverse.
- [to-double-quotes-cli](https://github.com/sindresorhus/to-double-quotes-cli) - CLI for this module
- [to-single-quotes](https://github.com/sindresorhus/to-single-quotes) - Convert matching double-quotes to single-quotes

@@ -44,0 +29,0 @@

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