{"id":15854068,"url":"https://github.com/afeiship/next-event-value","last_synced_at":"2026-05-08T13:38:37.130Z","repository":{"id":57122671,"uuid":"135410059","full_name":"afeiship/next-event-value","owner":"afeiship","description":"Get event value from evet.target/detail/value.","archived":false,"fork":false,"pushed_at":"2023-04-14T12:38:11.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T12:28:11.541Z","etag":null,"topics":["checkbox","detail","event","form","input","mina","mp","next","radio","react","switch","target","value","weapp","weixin"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2018-05-30T08:10:02.000Z","updated_at":"2023-04-14T12:36:56.000Z","dependencies_parsed_at":"2024-10-05T19:40:49.512Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-event-value","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-event-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-event-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-event-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-event-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-event-value/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246695666,"owners_count":20819312,"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":["checkbox","detail","event","form","input","mina","mp","next","radio","react","switch","target","value","weapp","weixin"],"created_at":"2024-10-05T19:40:44.764Z","updated_at":"2026-05-08T13:38:32.095Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-event-value\n\u003e Get event value from evet.target/detail/value.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-event-value\n```\n\n## usage\n```js\nimport '@jswork/next-event-value';\n\nconst event1 = { target: { value: 111 } };\nconst event2 = { detail: { value: 222 } };\nconst event3 = true;\nconst event4 = { xxx: { yyy: { aaa: 'v4' } } };\n\nnx.eventValue(event1) // 111\nnx.eventValue(event2) // 222\nnx.eventValue(event3) // true\nnx.eventValue(event4, { path: 'xxx.yyy.aaa' }); // 'v4'\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-event-value/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-event-value\n[version-url]: https://npmjs.org/package/@jswork/next-event-value\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-event-value\n[license-url]: https://github.com/afeiship/next-event-value/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-event-value\n[size-url]: https://github.com/afeiship/next-event-value/blob/master/dist/next-event-value.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-event-value\n[download-url]: https://www.npmjs.com/package/@jswork/next-event-value\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-event-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-event-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-event-value/lists"}