{"id":19947381,"url":"https://github.com/signified/clipboard","last_synced_at":"2025-11-27T05:09:01.958Z","repository":{"id":194675728,"uuid":"377389976","full_name":"signified/clipboard","owner":"signified","description":"Super simple, completely configurable, copy to clipboard.","archived":false,"fork":false,"pushed_at":"2022-10-07T07:59:23.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T05:28:31.297Z","etag":null,"topics":["clipboard","clipboard-copy","clipboard-javascript","clipboard-js","clipboardjs","copy","copy-paste","copy-to-clipboard","javascript","javascript-library","javascript-plugin","paste"],"latest_commit_sha":null,"homepage":"https://signified.github.io/clipboard","language":"HTML","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/signified.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-16T06:11:02.000Z","updated_at":"2023-09-27T00:40:53.000Z","dependencies_parsed_at":"2023-09-14T16:16:18.070Z","dependency_job_id":null,"html_url":"https://github.com/signified/clipboard","commit_stats":null,"previous_names":["signified/clipboard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fclipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fclipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fclipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signified%2Fclipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/signified","download_url":"https://codeload.github.com/signified/clipboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374550,"owners_count":19952545,"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":["clipboard","clipboard-copy","clipboard-javascript","clipboard-js","clipboardjs","copy","copy-paste","copy-to-clipboard","javascript","javascript-library","javascript-plugin","paste"],"created_at":"2024-11-13T00:35:49.171Z","updated_at":"2025-11-27T05:09:01.953Z","avatar_url":"https://github.com/signified.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clipboard\n\nSuper simple, completely configurable, copy to clipboard.\n\n## Installation\n\n1. Add the JavaScript before the `\u003c/body\u003e` (required)\n\n    ```html\n    \u003cscript src=\"clipboard.js\"\u003e\u003c/script\u003e\n    ```\n\n    or via jsDeliver:\n\n    ```html\n    \u003cscript src=\"https://cdn.jsdelivr.net/gh/signified/clipboard@1.0.1/clipboard.min.js\"\u003e\u003c/script\u003e\n    ```\n\n1. Add the stylesheet in the `\u003chead\u003e` (optional)\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"clipboard.css\"\u003e\n    ```\n\n    or via jsDeliver:\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/signified/clipboard@1.0.1/clipboard.min.css\"\u003e\n    ```\n\n**Note:** The supplied stylesheet applies default positioning and basic styling rules. Feel free to use it as a starting point or, if you're using a framework like Bootstrap or Tailwind CSS, make use of the `options` to take full advantage of the component and utility classes these frameworks provide.\n\n## Usage\n\nUsage examples can be found at https://signified.github.io/clipboard.\n\n```javascript\nclipboard(selectors, options, callback(template, element));\n```\n\n### `selectors` (string | required)\n\nA string containing one or more selectors to match against. For example, `'pre'` will match every `\u003cpre\u003e` element.\n\n### `options` (object | optional)\n\nAn object representing optional configuration options.\n\n```javascript\n{\n  // The position of the `template` relative to the selected `element`.\n  // Possible values are:\n  // 'beforebegin': Before the `element` (default).\n  // 'afterbegin': Inside the `element`, before its first child.\n  // 'beforeend': Inside the `element`, after its last child.\n  // 'afterend': After the `element`.\n  position: 'beforebegin'\n  // The HTML to use when creating the `template`.\n  template: '\u003cdiv class=\"clipboard\"\u003e\u003cbutton class=\"clipboard-button\" type=\"button\"\u003eCopy\u003c/button\u003e\u003c/div\u003e'\n}\n```\n\n### `callback` (function | optional)\n\nA callback function with parameters representing, for each `selectors`, the `template` and the selected `element`.\n\n## Contributing\n\nSee [Contributing](https://github.com/signified/.github/blob/main/CONTRIBUTING.md).\n\n## Credits\n\nSee [Contributors](https://github.com/signified/clipboard/graphs/contributors).\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignified%2Fclipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignified%2Fclipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignified%2Fclipboard/lists"}