{"id":17419842,"url":"https://github.com/bendrucker/email-input","last_synced_at":"2025-04-15T00:02:04.990Z","repository":{"id":57222802,"uuid":"39979763","full_name":"bendrucker/email-input","owner":"bendrucker","description":"Email input component for virtual-dom","archived":false,"fork":false,"pushed_at":"2018-11-13T19:07:13.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:13:59.706Z","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-07-31T01:13:10.000Z","updated_at":"2018-12-19T23:58:28.000Z","dependencies_parsed_at":"2022-08-29T00:11:31.861Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/email-input","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Femail-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Femail-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Femail-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Femail-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/email-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981263,"owners_count":21193145,"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:34:19.210Z","updated_at":"2025-04-15T00:02:04.970Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# email-input [![Build Status](https://travis-ci.org/bendrucker/email-input.svg?branch=master)](https://travis-ci.org/bendrucker/email-input)\n\n\u003e Email input component for virtual-dom\n\n\n## Install\n\n```\n$ npm install --save email-input\n```\n\n\n## Usage\n\n```js\nvar EmailInput = require('email-input')\nvar emailInput = EmailInput()\n\nfunction render (state) {\n  var vtree = EmailInput.render(state)\n  //=\u003e use virtual-dom to patch vtree into real DOM\n}\n\nemailInput(render)\n```\n\n## API\n\n#### `EmailInput(data)` -\u003e `function`\n\nCreate a new email input observable.\n\n##### data\n\nType: `object`\n\nThe initial state of the input.\n\n###### value\n\nType: `string`\n\nThe email address.\n\n#### `EmailInput.validate(state)` -\u003e `boolean`\n\nValidate the email input state.\n\n#### `EmailInput.render(state, options)` -\u003e `object`\n\nRender an email state to a vtree object. `options` will be merged with the defaults (`{type: 'email', name: 'email'}`) and passed to [virtual-hyperscript](https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript).\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Femail-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Femail-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Femail-input/lists"}