{"id":25306673,"url":"https://github.com/neworbit/not-valid-knockout","last_synced_at":"2025-04-07T06:29:20.085Z","repository":{"id":35240348,"uuid":"90883027","full_name":"NewOrbit/not-valid-knockout","owner":"NewOrbit","description":"Bindings for validation on knockout observables","archived":false,"fork":false,"pushed_at":"2022-03-24T20:22:10.000Z","size":183,"stargazers_count":0,"open_issues_count":12,"forks_count":1,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-04-26T05:44:18.850Z","etag":null,"topics":["package"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NewOrbit.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":"2017-05-10T16:00:43.000Z","updated_at":"2020-05-22T09:46:40.000Z","dependencies_parsed_at":"2022-08-08T07:00:20.571Z","dependency_job_id":null,"html_url":"https://github.com/NewOrbit/not-valid-knockout","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/NewOrbit%2Fnot-valid-knockout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Fnot-valid-knockout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Fnot-valid-knockout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewOrbit%2Fnot-valid-knockout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NewOrbit","download_url":"https://codeload.github.com/NewOrbit/not-valid-knockout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247604841,"owners_count":20965503,"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":["package"],"created_at":"2025-02-13T10:37:06.554Z","updated_at":"2025-04-07T06:29:20.067Z","avatar_url":"https://github.com/NewOrbit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# not-valid-knockout\n\nInterface between knockout and [not-valid](https://github.com/NewOrbit/not-valid/).\n\n## Usage\n\n```typescript\nimport { createValidator } from \"not-valid\";\nimport { createKnockoutWrapper } from \"not-valid-knockout\";\n\nconst mustBeJames = createValidator\u003cstring\u003e(v =\u003e v === \"James\", \"Value must be 'James'\");\n\nconst name = ko.observable\u003cstring\u003e();\nconst nameErrors = ko.observableArray\u003cstring\u003e();\n\nconst bindValidation = createKnockoutWrapper().bindValidation;\n\n// subscribe to an observable, validate, put errors into an observableArray\nbindValidation\u003cstring\u003e(\n    [ mustBeJames ],\n    name,\n    nameErrors\n);\n```\n\n## Testing\n\nIf you need to reduce the debounce time for testing you can set the environment variable `NOT_VALID_KNOCKOUT_DEBOUNCE`.\n\n## License\n\nMade with :sparkling_heart: by [NewOrbit](https://www.neworbit.co.uk/) in Oxfordshire, and licensed under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworbit%2Fnot-valid-knockout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneworbit%2Fnot-valid-knockout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworbit%2Fnot-valid-knockout/lists"}