{"id":15785677,"url":"https://github.com/arnaudrinquin/checkmate","last_synced_at":"2025-10-29T09:28:52.610Z","repository":{"id":57156993,"uuid":"78096769","full_name":"ArnaudRinquin/checkmate","owner":"ArnaudRinquin","description":"Checkmate is a very simple data validator","archived":false,"fork":false,"pushed_at":"2017-01-17T12:11:37.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T14:27:41.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://arnaud.rocks/checkmate/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArnaudRinquin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-05T08:58:08.000Z","updated_at":"2017-01-17T10:20:13.000Z","dependencies_parsed_at":"2022-09-03T18:51:19.994Z","dependency_job_id":null,"html_url":"https://github.com/ArnaudRinquin/checkmate","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnaudRinquin%2Fcheckmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnaudRinquin%2Fcheckmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnaudRinquin%2Fcheckmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArnaudRinquin%2Fcheckmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArnaudRinquin","download_url":"https://codeload.github.com/ArnaudRinquin/checkmate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246508029,"owners_count":20788930,"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-04T20:41:06.880Z","updated_at":"2025-10-29T09:28:47.586Z","avatar_url":"https://github.com/ArnaudRinquin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checkmate\n\n[![Build Status](https://travis-ci.org/ArnaudRinquin/checkmate.svg?branch=master)](https://travis-ci.org/ArnaudRinquin/checkmate) [![npm version](https://badge.fury.io/js/checkmate.svg)](https://badge.fury.io/js/checkmate)\n\nCheckmate is a very simple data validator.\n\n*Use cases*\n\n* form input validation\n* model validation\n\n*Characteristics*\n\n* no dependency\n* framework / lib / context agnostic: describe what you expect → send an object → get errors\n* does not come with validation functions, write your own or combine with libraries such as [`is.js`](http://is.js.org/)\n\n*Example*\n\nSee the [`react + is_js`](./examples/react-is_js) example.\n\n```js\nimport checkmate from 'checkmate'\nimport is from 'is_js'\n\nconst checkers = checkmate({\n  email: {\n    notEmpty: (str) =\u003e !is.empty(str),\n    isEmail: is.email,\n  },\n  password: {\n    truthy: (str) =\u003e !!str,\n    minLength: (str) =\u003e str \u0026\u0026 str.length \u003e 7,\n  },\n})\n\nconst errors = checkers({\n  email: 'arnaud@efounderscom',\n  password: false,\n})\n\nconsole.log(errors)\n\n// → { email: ['isEmail'], password: ['truthy'] }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudrinquin%2Fcheckmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnaudrinquin%2Fcheckmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnaudrinquin%2Fcheckmate/lists"}