{"id":25171711,"url":"https://github.com/basemax/copyclipboardjs","last_synced_at":"2025-05-05T21:09:51.624Z","repository":{"id":151535266,"uuid":"138398745","full_name":"BaseMax/CopyClipboardJs","owner":"BaseMax","description":" Tiny Library for copy text in clipboard.","archived":false,"fork":false,"pushed_at":"2018-06-24T10:22:23.000Z","size":39,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-04T21:45:35.858Z","etag":null,"topics":["browser","clipboard","clipboard-javascript","clipboard-javascript-library","clipboard-js","clipboard-manager","clipboardjs","copy","copy-paste","javascript","javascript-lib","javascript-library","js","js-library","js-libs","purejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-23T12:17:19.000Z","updated_at":"2022-02-16T07:53:37.000Z","dependencies_parsed_at":"2023-07-10T14:00:20.147Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/CopyClipboardJs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCopyClipboardJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCopyClipboardJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCopyClipboardJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FCopyClipboardJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/CopyClipboardJs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577020,"owners_count":21770721,"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":["browser","clipboard","clipboard-javascript","clipboard-javascript-library","clipboard-js","clipboard-manager","clipboardjs","copy","copy-paste","javascript","javascript-lib","javascript-library","js","js-library","js-libs","purejs"],"created_at":"2025-02-09T09:21:41.877Z","updated_at":"2025-05-05T21:09:51.618Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CopyClipboard\n Tiny Library for copy text in clipboard.\n\n![CopyClipboard.min.js File Size](https://img.shields.io/badge/Compressed%20Size-2%20KB-blue.svg) ![CopyClipboard.min.js Validation Code](https://img.shields.io/badge/Validation%20Code-Check-green.svg)\n\n\n## Features \n\n  - Fast\n  - Compact\n  - No dependencies\n  - Event after copy (e.g :`AJAX`,send a GET request)\n\n\n## Arguments \n\n| Argument Name  | Goal |\n| ------------- | ------------- |\n| data-copy-text  \t| Set Text   |\n| data-copy-from  | Set target, to get the text from they |\n| data-copy-after  | Execute the code after copying |\n| data-copy-link  | Send GET Request to a link after copying |\n\n## Samples\n\nTo view the full details, run the [Example.html](https://github.com/BaseMax/CopyClipboardJs/blob/master/Example.html) file.\n\n#### `data-copy-text`\n```\n\u003cbutton data-copy-text=\"Hello! how are you?\"\u003eClick , Copy!\u003c/button\u003e\n```\n#### `data-copy-from`\n```\nEnter Text : \u003cinput class=\"input_text\" name=\"text\" type=\"text\"\u003e\n\u003cbr\u003e\n\u003cbutton data-copy-from=\".input_text\"\u003eClick , Copy!\u003c/button\u003e\n```\n#### `data-copy-after`\nIt will be completed in the future.\n\n\n#### `onclick`\n```\n\u003cbutton data-copy-text=\"5+5\" onclick=\"copy.text(this);\"\u003eClick , Copy text with onclick\u003c/button\u003e\n```\n```\n\u003cbutton data-copy-from=\"#label_text\" onclick=\"copy.from(this);\"\u003eClick , Copy from #id with onclick\u003c/button\u003e\n```\n```\n\u003cbutton onclick=\"copy.copy_text('Hello my friend!');\"\u003eClick , Copy text\u003c/button\u003e\n```\n\n# License\n\nCopyClipboard is licensed under the [GNU General Public License](https://github.com/BaseMax/CopyClipboardJs/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fcopyclipboardjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fcopyclipboardjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fcopyclipboardjs/lists"}