{"id":20851143,"url":"https://github.com/sudhakar3697/node-clipboard-event","last_synced_at":"2025-04-09T16:10:27.283Z","repository":{"id":40705888,"uuid":"253773905","full_name":"sudhakar3697/node-clipboard-event","owner":"sudhakar3697","description":"Clipboard change event for Node.js/Electron.js/NW.js","archived":false,"fork":false,"pushed_at":"2024-02-13T00:17:44.000Z","size":57,"stargazers_count":102,"open_issues_count":9,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T12:50:38.088Z","etag":null,"topics":["clipboard","clipboard-change","clipboard-event","electron","nodejs","nwjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/clipboard-event","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/sudhakar3697.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/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},"funding":{"github":"sudhakar3697"}},"created_at":"2020-04-07T11:31:46.000Z","updated_at":"2025-02-20T07:30:48.000Z","dependencies_parsed_at":"2024-02-13T01:38:30.705Z","dependency_job_id":"081f1304-4c21-41fe-b7ed-cdaece6e19d7","html_url":"https://github.com/sudhakar3697/node-clipboard-event","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":"0.41666666666666663","last_synced_commit":"d2c02920b719d429fda8abe5ad3ab985ac94c28e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudhakar3697%2Fnode-clipboard-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudhakar3697%2Fnode-clipboard-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudhakar3697%2Fnode-clipboard-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudhakar3697%2Fnode-clipboard-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudhakar3697","download_url":"https://codeload.github.com/sudhakar3697/node-clipboard-event/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041871,"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-change","clipboard-event","electron","nodejs","nwjs"],"created_at":"2024-11-18T03:12:36.548Z","updated_at":"2025-04-09T16:10:27.263Z","avatar_url":"https://github.com/sudhakar3697.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sudhakar3697"],"categories":[],"sub_categories":[],"readme":"# node-clipboard-event \nClipboard change event for Node.js, Electron.js, NW.js. **[It's not being polled. This implementation is based on child_process. A native node module using N-API is being developed.](https://github.com/sudhakar3697/node-clipboard-event/tree/v2)**\n\n## Motivation\nThe motivation for creating this open project was these: \n\n**1.** [Add Clipboard change event to clipboard API](https://github.com/electron/electron/issues/2280)\n\n**2.** [Clipboard-master](https://github.com/DoumanAsh/clipboard-master)\n\n**3.** [Discussion: feasibility for clipboard change events](https://github.com/aweinstock314/rust-clipboard/issues/48)\n\n## Usage\n\n```js\nimport ClipboardListener from 'EventClipboard'\n\n// In case of CommonJS\n// const ClipboardListener = require('ClipboardEvent');\n\n// To start listening\nClipboardListener.startListening();\n\nClipboardListener.on('change', () =\u003e {\n    console.log('Clipboard changed');\n});\n\n// To stop listening\nClipboardListener.stopListening();\n```\n\n- Access `node_modules/clipboard-event/plataform` and run the following command to give execution permission for files from your OS:\n```bash\nchmod +x \u003cfilename\u003e\n```\n\n\n## Credits\n\n#### MAC\n* [apple/NSPasteboard](https://developer.apple.com/documentation/appkit/nspasteboard?language=occ)\n* [alecjacobson/Accessing clipboard (copy paste) from C++ program on Mac OS X](http://www.alecjacobson.com/weblog/?p=2376)\n* [Daemon-Devarshi/PasteboardWatcher.swift](https://gist.github.com/Daemon-Devarshi/13efd24f027a775ee862)\n  \n#### Linux:\n* [stackoverflow/X11 Wait for and Get Clipboard Text](https://stackoverflow.com/a/44992967)\n\n#### Windows\n* [glombard/ClipboardNotification.cs](https://gist.github.com/glombard/7986317)\n* [stackoverflow/\"Current thread must be set to single thread apartment (STA)\" error in copy string to clipboard](https://stackoverflow.com/questions/17762037/error-while-trying-to-copy-string-to-clipboard)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudhakar3697%2Fnode-clipboard-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudhakar3697%2Fnode-clipboard-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudhakar3697%2Fnode-clipboard-event/lists"}