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

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

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

to-double-quotes Build Status

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

See to-single-quotes for the inverse.

Install

Download manually or with a package-manager.

npm
npm install --save to-double-quotes

Or globally if you want to use it as a CLI app:

npm install --global to-double-quotes

You can then use it in your terminal like:

to-double-quotes src/*.txt

(make sure to have a backup before running this!)

Or pipe something to it:

cat input.txt | to-double-quotes > output.txt
Bower
bower install --save to-double-quotes
Component
component install sindresorhus/to-double-quotes

Example

Node.js
var toDoubleQuotes = require('to-double-quotes');
Bower
<script src="bower_components/to-double-quotes/to-double-quotes.js"></script>
Usage
toDoubleQuotes('I love \'unicorns\' "and" \'ponies\'');
//=> I love "unicorns" "and" "ponies"

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 28 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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