{"id":23053546,"url":"https://github.com/component/clipboard","last_synced_at":"2025-08-15T03:33:10.098Z","repository":{"id":4311062,"uuid":"5443853","full_name":"component/clipboard","owner":"component","description":"Clipboard API wrapper","archived":false,"fork":false,"pushed_at":"2015-03-16T20:53:07.000Z","size":193,"stargazers_count":21,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-10T22:56:41.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-16T19:57:45.000Z","updated_at":"2023-08-17T22:31:00.000Z","dependencies_parsed_at":"2022-08-06T15:18:25.469Z","dependency_job_id":null,"html_url":"https://github.com/component/clipboard","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fclipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/clipboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890512,"owners_count":18140109,"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":[],"created_at":"2024-12-16T00:18:36.078Z","updated_at":"2024-12-16T00:18:36.640Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Clipboard\n\n  Clipboard library.\n\n## Installation\n\n```\n$ component install component/clipboard\n```\n\n## Example\n\n```js\nvar Clipboard = require('clipboard');\nvar clip = new Clipboard(window);\n\nclip.on('paste', function(e){\n  e.items.forEach(function(item){\n    console.log(item);\n  });\n});\n\nclip.on('cut', function(){\n  console.log('cut');\n});\n\nclip.on('copy', function(e){\n  console.log('copy');\n});\n```\n\n## API\n\n### Clipboard#bind()\n\n  Bind event handlers. This is done for you in the constructor.\n\n### Clipboard#unbind()\n\n  Unbind event handlers.\n\n## Links\n\n  - w3c [clipboard apis](http://www.w3.org/TR/clipboard-apis/)\n\n## License\n\n MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fclipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fclipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fclipboard/lists"}