{"id":17419823,"url":"https://github.com/bendrucker/copy-input","last_synced_at":"2025-07-21T04:31:54.044Z","repository":{"id":57207251,"uuid":"46424374","full_name":"bendrucker/copy-input","owner":"bendrucker","description":"Render an input that auto-selects and copies when clicked","archived":false,"fork":false,"pushed_at":"2018-11-13T18:58:20.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T19:15:35.193Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.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}},"created_at":"2015-11-18T14:34:36.000Z","updated_at":"2018-12-19T23:58:27.000Z","dependencies_parsed_at":"2022-09-08T14:20:07.384Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/copy-input","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fcopy-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fcopy-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fcopy-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fcopy-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/copy-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226867826,"owners_count":17694818,"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-10-17T02:33:59.256Z","updated_at":"2024-11-28T06:16:51.838Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copy-input [![Build Status](https://travis-ci.org/bendrucker/copy-input.svg?branch=master)](https://travis-ci.org/bendrucker/copy-input)\n\n\u003e Render an input that auto-selects and copies when clicked\n\n\n## Install\n\n```\n$ npm install --save copy-input\n```\n\n\n## Usage\n\n```js\nvar CopyInput = require('copy-input')\n\nvar state = CopyInput()\nvar options = {\n  style: {\n    background: 'blue'\n  },\n  value: 'copy me!'\n}\nCopyInput.render(state, options)\n//=\u003e ...\n//=\u003e renders blue readonly input that copies itself when clicked\n```\n\n## API\n\n#### `CopyInput()` -\u003e `function`\n\nReturns an observable value representation (`state`).\n\n#### `CopyInput.render(state, options)` -\u003e `object`\n\nRenders the copy input to a vtree. `options.value` is displayed in the input field.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fcopy-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fcopy-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fcopy-input/lists"}