JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 85998
  • Score
    100M100P100Q153773F
  • License MIT

Quote a value

Package Exports

  • quotation

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (quotation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

quotation

Build Coverage Downloads Size

Quote a value.

Installation

npm:

npm install quotation

Usage

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