{"id":15836967,"url":"https://github.com/afeiship/next-get-valid","last_synced_at":"2026-05-17T17:03:09.621Z","repository":{"id":96088548,"uuid":"147781266","full_name":"afeiship/next-get-valid","owner":"afeiship","description":"Get valid data by condtion.","archived":false,"fork":false,"pushed_at":"2024-07-29T02:50:25.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T22:09:54.294Z","etag":null,"topics":["empty","get","is-empty","is-valid","next","nil","nx"],"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-09-07T06:34:53.000Z","updated_at":"2024-07-29T02:50:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7865dad2-8b10-4b6b-84b2-d967958ddb45","html_url":"https://github.com/afeiship/next-get-valid","commit_stats":null,"previous_names":["afeiship/next-get-valid"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-get-valid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-get-valid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-get-valid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-get-valid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-get-valid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-get-valid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-get-valid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273595558,"owners_count":25134257,"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-09-04T02:00:08.968Z","response_time":61,"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":["empty","get","is-empty","is-valid","next","nil","nx"],"created_at":"2024-10-05T15:20:20.267Z","updated_at":"2026-05-17T17:03:09.571Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-get-valid\n\u003e Get valid data by condtion.\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\nyarn add @jswork/next-get-valid\n```\n\n## usage\n```js\nimport '@jswork/next-get-valid';\n\nconst data = {\n  name: 'xiaoming',\n  age: 18,\n  email: ''\n};\n\nconst isValidEmail = (value) =\u003e {\n  return value.indexOf('@') \u003e -1;\n};\n\nconst res = nx.getValid(data, 'email', 'example@email', isValidEmail);\n// res -\u003e 'example@email'\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-get-valid/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-get-valid\n[version-url]: https://npmjs.org/package/@jswork/next-get-valid\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-get-valid\n[license-url]: https://github.com/afeiship/next-get-valid/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-get-valid\n[size-url]: https://github.com/afeiship/next-get-valid/blob/master/dist/next-get-valid.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-get-valid\n[download-url]: https://www.npmjs.com/package/@jswork/next-get-valid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-get-valid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-get-valid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-get-valid/lists"}