to-double-quotes
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"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": "*", |
# 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
1885
3
14
32
- Removedget-stdin@^3.0.0
- Removedget-stdin@3.0.2(transitive)