{"id":27977001,"url":"https://github.com/lemoncode/fonk-validator-builder","last_synced_at":"2025-05-08T01:44:09.567Z","repository":{"id":57126704,"uuid":"207489743","full_name":"Lemoncode/fonk-validator-builder","owner":"Lemoncode","description":"Builder project to create fonk validators. More about fonk in https://github.com/Lemoncode/fonk","archived":false,"fork":false,"pushed_at":"2019-11-07T09:04:18.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T01:44:04.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Lemoncode.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-09-10T07:13:47.000Z","updated_at":"2019-11-07T09:04:20.000Z","dependencies_parsed_at":"2022-08-31T14:00:17.876Z","dependency_job_id":null,"html_url":"https://github.com/Lemoncode/fonk-validator-builder","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemoncode%2Ffonk-validator-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemoncode%2Ffonk-validator-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemoncode%2Ffonk-validator-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemoncode%2Ffonk-validator-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lemoncode","download_url":"https://codeload.github.com/Lemoncode/fonk-validator-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252983757,"owners_count":21835758,"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":"2025-05-08T01:44:08.732Z","updated_at":"2025-05-08T01:44:09.520Z","avatar_url":"https://github.com/Lemoncode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fonk-validator-builder\n\nHelper library to create `validators` supported by [fonk](https://github.com/Lemoncode/fonk) library.\n\n# How to use it\n\n- Install library as globally or use [npx](https://github.com/zkat/npx):\n\n```bash\nnpm install @lemoncode/fonk-validator-builder -g\n```\n\n- Create validator repository in https://github.com/Lemoncode. A good repository name will be **fonk-_validator-name_-validator**. For example, `fonk-is-number-validator`.\n\n- Add repository to [circleci](https://circleci.com/add-projects/gh/Lemoncode):\n\n![add-project-to-circleci](./readme-resources/add-project-to-circleci.jpg)\n\n- Execute command in `empty` folder project. It will create validator folders and files:\n\n```bash\nfonk-validator\n```\n\n\u003e NOTE: It will prompt a question requiring the `validator name`\n\n- Install dependencies:\n\n```bash\nnpm install\n```\n\n- Search `// TODO:` to get pending files to update and implement it:\n\n- Add PR with implementation.\n\n- Publishing library:\n\n```bash\nnpm run deploy // Select library version 1.0.0\n```\n\n# Description\n\n- Install as globally this library to create [fonk](https://github.com/Lemoncode/fonk) validators.\n- Run `fonk-validator` command.\n- Insert `validator name`. It automatically adds `fonk-` prefix and `-validator` suffix. For example: `is-number` -\u003e `fonk-is-number-validator`.\n- It will copy all necessary files in your project using the `validator name`.\n- Now you can search `// TODO:` to implement necessary code.\n- Publish new `fonk validator` with `npm run deploy`.\n\n# About Basefactor + Lemoncode\n\nWe are an innovating team of Javascript experts, passionate about turning your ideas into robust products.\n\n[Basefactor, consultancy by Lemoncode](http://www.basefactor.com) provides consultancy and coaching services.\n\n[Lemoncode](http://lemoncode.net/services/en/#en-home) provides training services.\n\nFor the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemoncode%2Ffonk-validator-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemoncode%2Ffonk-validator-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemoncode%2Ffonk-validator-builder/lists"}