{"name":"quotation","version":"1.1.0","description":"Quote a value","license":"MIT","keywords":["double","single","quote","quotation","dumb","smart","single","double","low","high","guillemet"],"repository":{"type":"git","url":"git+https://github.com/wooorm/quotation.git"},"bugs":{"url":"https://github.com/wooorm/quotation/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","nyc":"^9.0.1","remark-cli":"^2.1.0","remark-preset-wooorm":"^1.0.0","tape":"^4.0.0","xo":"^0.17.1"},"scripts":{"build-md":"remark . --quiet --frail --output","build-bundle":"browserify index.js --bare -s quotation > quotation.js","build-mangle":"esmangle quotation.js > quotation.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"ignore":["quotation.js"]},"remarkConfig":{"presets":"wooorm"},"gitHead":"5aaee3789c3b9b681852bd0f11e12df250ed536e","homepage":"https://github.com/wooorm/quotation#readme","_id":"quotation@1.1.0","_shasum":"3f9c9b2e7780856f27c5015bec628d690e82c70d","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"3f9c9b2e7780856f27c5015bec628d690e82c70d","tarball":"http://registry-npm.ywwl.com/quotation/download/quotation-1.1.0.tgz","integrity":"sha512-znXGnrTuyMztiYVBfDsghal7f6M8UgR9i02KeGCU7a94cpUbehN23UsbbWuyzva/KSzxdC8iDW25rY59Bx7d0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBF3stpGZAnYcAh9zf5GwoX+aEdJ69qhPaV+D/dxBxuhAiAmyWQ3nlrKHgv8DRPI7/ha8Wu7C5QGxRzNiPGpNbp3hw=="}],"size":2164,"noattachment":false,"key":"/quotation/-/quotation-1.1.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/quotation-1.1.0.tgz_1479573657691_0.20969229354523122"},"directories":{},"readme":"# quotation\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nQuote a value.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`quotation(value[, open[, close]])`](#quotationvalue-open-close)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package makes it quite easy to quote one or more values.\n\n## When should I use this?\n\nUse this package if you need to quote one or more strings with straight or smart\nquotes.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install quotation\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {quotation} from 'https://esm.sh/quotation@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {quotation} from 'https://esm.sh/quotation@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {quotation} from 'quotation'\n\nquotation('one') // => '\"one\"'\nquotation(['one', 'two']) // => ['\"one\"', '\"two\"']\nquotation('one', \"'\") // => \"'one'\"\nquotation('one', '“', '”') // => '“one”'\n```\n\n## API\n\nThis package exports the identifier `quotation`.\nThere is no default export.\n\n### `quotation(value[, open[, close]])`\n\nQuote a value.\n\n###### Parameters\n\n*   `value` (`string` or `string[]`)\n    — value to wrap in quotes\n*   `open` (`string`, default: `\"`)\n    — character to add at start of `value`\n*   `close` (`string`, default: `open` or `\"`)\n    — character to add at end of `value`\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/quotation/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/quotation/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/quotation.svg\n\n[coverage]: https://codecov.io/github/wooorm/quotation\n\n[downloads-badge]: https://img.shields.io/npm/dm/quotation.svg\n\n[downloads]: https://www.npmjs.com/package/quotation\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/quotation.svg\n\n[size]: https://bundlephobia.com/result?p=quotation\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","publish_time":1479573658214,"_cnpm_publish_time":1479573658214,"dist-tags":{"latest":"2.0.3"}}