string-quote-x

3.1.2 • Public • Published

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.

Param Type Description
string string The string to safely wrap in double quotes.

Example

import quote from 'string-quote-x';
 
console.log(quote('hello')); // '"hello"'

Package Sidebar

Install

npm i string-quote-x

Weekly Downloads

12

Version

3.1.2

License

MIT

Unpacked Size

274 kB

Total Files

11

Last publish

Collaborators

  • xotic750