{"name":"quotation","version":"2.0.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"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"c598e95f0987010f3a77beeb6d4f6d9c103da25d","homepage":"https://github.com/wooorm/quotation#readme","_id":"quotation@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"integrity":"sha512-m5cm5xPLT6Awyhf26cJqChJCtNoCVjfw4WTNqgwIXafio8iPrTcFWcUGj5rTWvlNv7N28azht179TdR1oeTedA==","shasum":"c8c56ae23d0a9b7ee1fd8e894463c85be01cbe98","tarball":"http://registry-npm.ywwl.com/quotation/download/quotation-2.0.0.tgz","fileCount":5,"unpackedSize":5658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS40bCRA9TVsSAnZWagAAbEIP/R64ktAUwvgCDVPRrwuj\nULBvp69183bd3f121P0y5WMgpuhD4SoG+YU/Sbe+CuK/p4ZLsd7o4mlR52Nr\nNpn1tbT1H1IUuIr235uR1ZwRvV1RJNhnP1SW0hxb/0g5yr89lxIRds8hKHKG\n3T1ogHITjWbt7p6USro2/5bIjwkT9h2DmbSfZSgBKlqeyZQKGf3shGB3XznY\nVrty/kqST5WiOp0CPCMOBxlQsCM6FjpVXQLnVL+biZ0EZzMRuFp9c6RVcTr8\nnY3nE1uLmVvSPhCVGIZyPqCcb7uYcuzkfDa9UBxymKmsfRs0h6s4qEKAFOlc\nLFu+TY7WPGq7XbfZhCfCKPCtQPSE5Anwu4uHjdjBF83FkUseHaJwhDwbhM5p\nGrcmNO4i+GIS0xeG0Zp9Oz518ZR4cPmzgmtMn2TPFGqAK2sCCxhrdCk11GG4\nS6GZ4Q1OqNVR9+HFjipi0auxaDx/mWtEWb5zM5S8+L6pQ63uK7w6d4lDjYaf\nsUIFCEFgqQv7QQE+3yfEOz3Z7wdMqy2Cb4I1WaL+NTpjIjtb8IxHtqPOH4ih\n3bdKMCcXKtO5PUoRHU3cVIKb0JmXaaHHBc8l2MkdjTLuffX42FpMdqJ1i8kK\n+ovbz9UtEHIDjjdJPUhcX1P3QfKghMM+hYKOlFf00rN8sHxVZMLY3gXaiaP6\naQyR\r\n=QBKx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBChGIyjYu1bvsd6rRSnQ1eNvB3UThM6+OeFzZ1MtHzAiEAz3lQ2a94YH8W4V+dIXvHVXwR65Y++Ez5wrPS3bCVzKM="}],"size":2613,"noattachment":false,"key":"/quotation/-/quotation-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quotation_2.0.0_1615564058801_0.023695402094890516"},"_hasShrinkwrap":false,"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":1615564059216,"_cnpm_publish_time":1615564059216,"dist-tags":{"latest":"2.0.3"}}