{"name":"quotation","version":"2.0.2","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":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"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 --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","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},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"059bc473ed6c1093756c9f493d26d366fe91cf50","homepage":"https://github.com/wooorm/quotation#readme","_id":"quotation@2.0.2","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-FeUlLe40ROXHVWLZkzmeR2PNYWdkvTXEXhW6FX8axRv1ODt8Gxed3APrE1Qb5i1n70ZzZGRmvs0jY3v/BRcJQQ==","shasum":"3de5c7cac6324ee3bee38108054f8f5e4e9d91e2","tarball":"http://registry-npm.ywwl.com/quotation/download/quotation-2.0.2.tgz","fileCount":5,"unpackedSize":7457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh23v4CRA9TVsSAnZWagAAd0sQAId58Iv5OQG8UEjVqD8K\n+BUuQ7HxgnvZ9ye/y8pNz7BmpsFTz4jZbgEltYEuMpOJHB2HnEAT0NLq1VPE\n5ixyMm7A5sQgPPeSD/UwZqKHy1+ZJ1b/zeL+6XVb128qE2GJpjZG66NIq5V0\nq+8kJ3KMbQnqz4YAg/yYAMjGm2worxCyWgikMfn6KD+aO8xtODvUPWuok8a3\nBANg9fTq8+fyeay5nGwCoem4zZNBxVZVKjtu/SF+hLw1NRQcHjErNH2DWWQz\nWuO7gaYAnzUdsriAvX/A0DLpG5T0BiUM5bTrVZmCsxtZlCXicGd5fOMUFGlb\n+ADQ2f3aHSPF0a6ggUsK2XLzVb8jaNhsyVa87cjzIddEu2HCkKUp7NiuYR5V\nTdPgIRp2dqgX28W711PnlbSKTFZXMJ65HQdEuLsLPJ39QIR/WxVmLq61yyVo\np6lQRmmNkrAhTJfydfS82I2tWxVgjDlMbei/D0MxZTqIIyqf74qrOoYSyk05\nn/qGhKH81P7kV4WASosBLfKcukTwQ6GYbi9Tnr42qPtu649Y0ODsilZDHhNN\nrl57hqao+/NZm9YVZgqDuATb6TbkRHJJIRVtUiAdgDG65Yc/2/lu9Z3LBx/w\nKVArWLEvRiAEMyfQdvDUTbqaUJ2ovKnNq+jBB+pCr6g/L+41S5N8tK1N6bVP\nVfSE\r\n=sNLW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWi+MrOjw+PBWo6xdl5ngj5CK98e4bizWLC8CK58/n/wIgOxPkq/j10ljCWbEQyRLaKZ26W4xTPBSyHw3Idl6AsKk="}],"size":3224,"noattachment":false,"key":"/quotation/-/quotation-2.0.2.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.2_1636140565631_0.6548037521399588"},"_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":1636140565796,"_cnpm_publish_time":1636140565796,"dist-tags":{"latest":"2.0.3"}}