to-single-quotes
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "to-single-quotes", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Convert matching double-quotes to single-quotes: I \"love\" unicorns => I 'love' unicorns", | ||
@@ -8,2 +8,5 @@ "license": "MIT", | ||
"main": "to-single-quotes.js", | ||
"bin": { | ||
"to-single-quotes": "cli.js" | ||
}, | ||
"author": { | ||
@@ -21,3 +24,4 @@ "name": "Sindre Sorhus", | ||
"files": [ | ||
"to-single-quotes.js" | ||
"to-single-quotes.js", | ||
"cli.js" | ||
], | ||
@@ -24,0 +28,0 @@ "keywords": [ |
@@ -18,2 +18,22 @@ # to-single-quotes [![Build Status](https://travis-ci.org/sindresorhus/to-single-quotes.png?branch=master)](http://travis-ci.org/sindresorhus/to-single-quotes) | ||
Or globally if you want to use it as a CLI app: | ||
``` | ||
npm install --global to-single-quotes | ||
``` | ||
You can then use it in your terminal like: | ||
``` | ||
to-single-quotes src/*.txt | ||
``` | ||
*(make sure to have a backup before running this!)* | ||
Or pipe something to it: | ||
``` | ||
cat input.txt | to-single-quotes > output.txt | ||
``` | ||
#### [Bower](http://bower.io) | ||
@@ -53,2 +73,6 @@ | ||
Or using the command line | ||
``` | ||
to-single-quotes path/to/*.js | ||
``` | ||
@@ -55,0 +79,0 @@ ## License |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
4033
4
62
80
2