New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

string-quote-x

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-quote-x

Wrap a string in double quotes.

latest
Source
npmnpm
Version
3.1.2
Version published
Maintainers
1
Created
Source

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

string-quote-x

Wrap a string in double quotes.

module.exports(string)string

This method wraps a string in double quotes and replaces control characters with safe escape sequences.

Kind: Exported function
Returns: string - The wrapped string.

ParamTypeDescription
stringstringThe string to safely wrap in double quotes.

Example

import quote from 'string-quote-x';

console.log(quote('hello')); // '"hello"'

Keywords

string

FAQs

Package last updated on 28 Aug 2019

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