quotation
Quote a value
Last updated 6 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install quotation 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.3                                ...           latest (6 months ago)

6 Versions

  • 1.1.3                                ...           6 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |