{"id":13447749,"url":"https://github.com/jakeburden/state-copy","last_synced_at":"2025-10-23T19:38:56.245Z","repository":{"id":40929357,"uuid":"96335452","full_name":"jakeburden/state-copy","owner":"jakeburden","description":"takes an object as input then serializes it as JSON and copies it to your clipboard from the browser","archived":false,"fork":false,"pushed_at":"2022-12-10T03:53:09.000Z","size":677,"stargazers_count":14,"open_issues_count":11,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T23:15:36.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jakeburden.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-07-05T15:41:32.000Z","updated_at":"2023-04-28T16:29:22.000Z","dependencies_parsed_at":"2022-09-09T18:10:11.916Z","dependency_job_id":null,"html_url":"https://github.com/jakeburden/state-copy","commit_stats":null,"previous_names":["jekrb/state-copy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jakeburden/state-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fstate-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fstate-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fstate-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fstate-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakeburden","download_url":"https://codeload.github.com/jakeburden/state-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fstate-copy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269922906,"owners_count":24496999,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-31T05:01:25.959Z","updated_at":"2025-10-23T19:38:51.221Z","avatar_url":"https://github.com/jakeburden.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# state-copy\n\n\u003e takes an object as input then serializes it as JSON and copies it to your clipboard\n\nMakes it easier to copy application state to your clipboard from the browser.\n\n## Usage\n\n```js\nvar stateCopy = require('state-copy')\n\nwindow.addEventListener('keyup', function (e) {\n  // press 'c' to copy current state to clipboard\n  if (e.keyCode === 67) {\n    stateCopy({wow: 'cool'})\n  }\n})\n```\n\nwhat gets copied to clipboard\n\n```\n{\"wow\":\"cool\"}\n```\n\n## Notes\n\nMust be called in response to a user gesture event, like click or keyup.\n\n## Install\n\n```\n$ npm install state-copy\n```\n\n## Acknowledgments\n\nstate-copy was inspired by [@yoshuawuyts tweet](https://twitter.com/yoshuawuyts/status/882606862981615616)\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fstate-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeburden%2Fstate-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fstate-copy/lists"}