npm

Need private packages and team management tools?Check out npm Orgs. »

quotation

1.1.2 • Public • Published

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

install

npm i quotation

Downloadsweekly downloads

4,050

version

1.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability