{"id":18340208,"url":"https://github.com/momi-foundation-coding/nodejs-validate","last_synced_at":"2025-08-03T04:11:00.218Z","repository":{"id":42997369,"uuid":"194932040","full_name":"momi-foundation-coding/nodejs-validate","owner":"momi-foundation-coding","description":"This is a validation middleware for Nodejs application and API including validations when using frameworks such as kemboijs, express, Koa etc","archived":false,"fork":false,"pushed_at":"2023-01-05T17:39:09.000Z","size":287,"stargazers_count":1,"open_issues_count":9,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-29T08:17:06.684Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"http://www.kemboijs.org/","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/momi-foundation-coding.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":"2019-07-02T20:42:53.000Z","updated_at":"2020-11-29T06:25:16.000Z","dependencies_parsed_at":"2023-02-04T08:45:43.520Z","dependency_job_id":null,"html_url":"https://github.com/momi-foundation-coding/nodejs-validate","commit_stats":null,"previous_names":["kemboijs/kemboijs-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/momi-foundation-coding/nodejs-validate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/momi-foundation-coding%2Fnodejs-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/momi-foundation-coding%2Fnodejs-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/momi-foundation-coding%2Fnodejs-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/momi-foundation-coding%2Fnodejs-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/momi-foundation-coding","download_url":"https://codeload.github.com/momi-foundation-coding/nodejs-validate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/momi-foundation-coding%2Fnodejs-validate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268492555,"owners_count":24258843,"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-08-03T02:00:12.545Z","response_time":2577,"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":["hacktoberfest"],"created_at":"2024-11-05T20:21:34.611Z","updated_at":"2025-08-03T04:11:00.168Z","avatar_url":"https://github.com/momi-foundation-coding.png","language":"TypeScript","readme":"[![Build Status](https://travis-ci.org/kemboijs/nodejs-validate.svg?branch=master)](https://travis-ci.org/kemboijs/nodejs-validate)\n[![Maintainability](https://api.codeclimate.com/v1/badges/053e219b1afab73b20ae/maintainability)](https://codeclimate.com/github/kemboijs/nodejs-validate/maintainability)\n![npm](https://img.shields.io/npm/dm/nodejs-validate)\n![npm](https://img.shields.io/npm/v/nodejs-validate?color=blue)\n[![Coverage Status](https://coveralls.io/repos/github/kemboijs/nodejs-validate/badge.svg?branch=master)](https://coveralls.io/github/kemboijs/nodejs-validate?branch=master)\n\n# NodeJs Validate\n\nThis is a validation middleware for Nodejs application and API including validations when using frameworks such as [kemboijs](https://kemboijs.github.io/kemboijs.org). It can be used to validate request or sanitize them. Note that, this validator makes use of validator.js.\n\n# How to Install and Usage \n\n- `npm install nodejs-validate`\n\n# Examples \n\n```javascript \n  var validator = require(\"nodejs-validate\");\n  var validEmail = validator.isEmail(\"example@example.com\");\n  var invalidEmail = validator.isEmail(\"notvalida@invalid\");\n```\n\n# Usage in Express Middlware\n\n```javascript\nconst validator = require('nodejs-validate')\n\nclass ExampleMiddleware {\n  static async userMiddleware(req, res, next) {\n    const { email, username, phoneNumber } = req.body;\n    const isEmail = validator.isEmail(email);\n    if(!isEmail) {\n      res.status(400).send({\n        message: \"Invalid email provided\"\n      })\n    }\n    next();\n  }\n}\n```\n\n# How To Contribute\n\nIn general, we follow the \"fork-and-pull\" Git workflow.\n\n1. Fork this [repo](https://github.com/kemboijs/nodejs-validate.git) on GitHub\n2. Clone the forked repo locally\n3. Work on your fork\n   - Make your changes and additions\n   - Change or add tests if needed\n   - Add changes to README.md if needed\n4. Commit changes to your own branch\n5. Make sure you merge the latest from \"upstream\" and resolve conflicts if there is any\n6. Push your work back up to your fork\n7. Submit a Pull request so that we can review your changes\n\n# Contributors\n\n\u003ca href=\"https://github.com/kemboijs/nodejs-validate/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.firebaseapp.com/image?repo=kemboijs/nodejs-validate\" width=\"200\"/\u003e\n\u003c/a\u003e\n\n# License\n\n[MIT](https://github.com/kemboijs/nodejs-validate/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomi-foundation-coding%2Fnodejs-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmomi-foundation-coding%2Fnodejs-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomi-foundation-coding%2Fnodejs-validate/lists"}