Socket
Socket
Sign inDemoInstall

quotation

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    quotation

Quote a value


Version published
Weekly downloads
37K
decreased by-1.28%
Maintainers
1
Install size
5.76 kB
Created
Weekly downloads
 

Readme

Source

quotation

Build Coverage Downloads Size

Quote a value.

Install

npm:

npm install quotation

Use

var quotation = require('quotation')

quotation('one') // => '"one"'
quotation(['one', 'two']) // => ['"one"', '"two"']
quotation('one', "'") // => '\'one\''
quotation('one', '“', '”') // => '“one”'

API

quotation(value[, open[, close]])

Quote a value.

Parameters
  • value (string or Array.<string>) — Value to wrap in quotes
  • open (string, default: ") — Character to add at start of value
  • close (string, default: open or ") — Character to add at end of value

License

MIT © Titus Wormer

Keywords

FAQs

Last updated on 25 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc