{"id":17242817,"url":"https://github.com/imcuttle/quote-it","last_synced_at":"2025-03-26T03:44:24.789Z","repository":{"id":45113244,"uuid":"145370513","full_name":"imcuttle/quote-it","owner":"imcuttle","description":"Safe quoting a given string without adding duplicate quotes","archived":false,"fork":false,"pushed_at":"2022-01-07T14:11:06.000Z","size":101,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T02:34:04.502Z","etag":null,"topics":["quote","stringify"],"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/imcuttle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-20T05:34:26.000Z","updated_at":"2018-08-31T05:53:49.000Z","dependencies_parsed_at":"2022-09-12T01:22:32.268Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/quote-it","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fquote-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fquote-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fquote-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fquote-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/quote-it/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585798,"owners_count":20639671,"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","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","stringify"],"created_at":"2024-10-15T06:14:09.680Z","updated_at":"2025-03-26T03:44:24.770Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quote-it\n\n[![build status](https://img.shields.io/travis/imcuttle/quote-it/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/quote-it)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/quote-it.svg?style=flat-square)](https://codecov.io/github/imcuttle/quote-it?branch=master)\n[![NPM version](https://img.shields.io/npm/v/quote-it.svg?style=flat-square)](https://www.npmjs.com/package/quote-it)\n[![NPM Downloads](https://img.shields.io/npm/dm/quote-it.svg?style=flat-square\u0026maxAge=43200)](https://www.npmjs.com/package/quote-it)\n\nSafe quoting a given string without adding duplicate quotes\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### quote\n\n[index.js:46-57](https://github.com/imcuttle/quote-it/blob/5c1b0291e0cc2742427b102f31b68d1ca0cf1f87/index.js#L46-L57 'Source code on GitHub')\n\nUses `quoteChar` to wrap string.\n\n#### Parameters\n\n- `string` {string}\n- `quoteChar` {string}\n\n#### Examples\n\n```javascript\nimport quote from 'quote-it'\nquote('abc', \"'\") === \"'abc'\"\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\n\n### single\n\n[index.js:68-70](https://github.com/imcuttle/quote-it/blob/5c1b0291e0cc2742427b102f31b68d1ca0cf1f87/index.js#L68-L70 'Source code on GitHub')\n\nUses single quote to wrap string.\n\n#### Parameters\n\n- `string`\n\n#### Examples\n\n```javascript\nimport { single } from 'quote-it'\nsingle(\"a'bc\") === \"'a'bc'\"\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\n\n### double\n\n[index.js:78-80](https://github.com/imcuttle/quote-it/blob/5c1b0291e0cc2742427b102f31b68d1ca0cf1f87/index.js#L78-L80 'Source code on GitHub')\n\nUses double quote to wrap string.\n\n#### Parameters\n\n- `string`\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fquote-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Fquote-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fquote-it/lists"}