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
Quote a value.
Install
This package is ESM only: Node 12+ is needed to use it and it must be imported
instead of required.
npm:
npm install quotationUse
import {quotation} from 'quotation'
quotation('one') // => '"one"'
quotation(['one', 'two']) // => ['"one"', '"two"']
quotation('one', "'") // => '\'one\''
quotation('one', '“', '”') // => '“one”'API
This package exports the following identifiers: quotation.
There is no default export.
quotation(value[, open[, close]])
Quote a value.
Parameters
value(stringorstring[]) — Value to wrap in quotesopen(string, default:") — Character to add at start ofvalueclose(string, default:openor") — Character to add at end ofvalue