{"id":15413522,"url":"https://github.com/wooorm/quotation","last_synced_at":"2025-07-25T01:06:47.956Z","repository":{"id":53802441,"uuid":"49646762","full_name":"wooorm/quotation","owner":"wooorm","description":"Quote a value","archived":false,"fork":false,"pushed_at":"2023-12-15T16:26:10.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T21:55:05.670Z","etag":null,"topics":["quote"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wooorm"}},"created_at":"2016-01-14T12:45:09.000Z","updated_at":"2023-09-08T17:05:48.000Z","dependencies_parsed_at":"2024-06-18T18:36:24.834Z","dependency_job_id":"1b52992f-5c1c-4454-a137-9a50163f7f34","html_url":"https://github.com/wooorm/quotation","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":0.06349206349206349,"last_synced_commit":"6842241698d523fd7da83ba5ea854b4eeed2c74f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/wooorm/quotation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fquotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fquotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fquotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fquotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/quotation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fquotation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936385,"owners_count":24009407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["quote"],"created_at":"2024-10-01T16:57:34.766Z","updated_at":"2025-07-25T01:06:47.902Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"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\u003cscript type=\"module\"\u003e\n  import {quotation} from 'https://esm.sh/quotation@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {quotation} from 'quotation'\n\nquotation('one') // =\u003e '\"one\"'\nquotation(['one', 'two']) // =\u003e ['\"one\"', '\"two\"']\nquotation('one', \"'\") // =\u003e \"'one'\"\nquotation('one', '“', '”') // =\u003e '“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\u003c!-- Definitions --\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fquotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fquotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fquotation/lists"}