{"id":13736647,"url":"https://github.com/matteocrippa/fossil","last_synced_at":"2026-02-01T08:31:24.191Z","repository":{"id":151221872,"uuid":"266526415","full_name":"matteocrippa/fossil","owner":"matteocrippa","description":"A typescript validation suite for deno projects","archived":false,"fork":false,"pushed_at":"2020-06-22T14:54:43.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T03:06:34.518Z","etag":null,"topics":["deno","type-validation","typescript","validation","validator","value-validation"],"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/matteocrippa.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-24T11:26:59.000Z","updated_at":"2021-06-13T16:48:39.000Z","dependencies_parsed_at":"2024-01-02T22:57:01.732Z","dependency_job_id":"855601e7-1eea-4433-9450-e5c6dc09c836","html_url":"https://github.com/matteocrippa/fossil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocrippa%2Ffossil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocrippa%2Ffossil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocrippa%2Ffossil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matteocrippa%2Ffossil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matteocrippa","download_url":"https://codeload.github.com/matteocrippa/fossil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224732129,"owners_count":17360416,"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":["deno","type-validation","typescript","validation","validator","value-validation"],"created_at":"2024-08-03T03:01:25.702Z","updated_at":"2026-02-01T08:31:24.132Z","avatar_url":"https://github.com/matteocrippa.png","language":"TypeScript","readme":"# ![Fossil Logo](https://raw.githubusercontent.com/matteocrippa/fossil/master/.github/footprint.png) fossil\n\nA typescript validation suite for deno projects.\n\nAt this _alpha_ stage fossil support validation for the following types:\n\n- [x] String\n- [x] Number\n- [x] Symbol\n- [x] Custom function\n- [x] Array\n- [x] Object\n- [x] Null\n- [x] Undefined\n- [x] Email\n- [ ] Alphanumeric\n\nA good companion project for `fossil` is [Microraptor](https://github.com/matteocrippa/microraptor) a lightweight framework for easy routing.\n\n## Install\n\nImport _fossil_ in your project with just one line of code:\n\n```ts\nimport { Validator } from \"https://deno.land/x/fossil/fossil.ts\";\n```\n\n## How to use\n\n### Check type\n\n```ts\nlet testBoolean = new Validator(true, ValidatorType.boolean);\nconsole.log(testBoolean.isValid()); // true\n\ntestBoolean = new Validator(\"home\", ValidatorType.boolean);\nconsole.log(testBoolean.isValid()); // Invalid type\n```\n\nFor more use feel free to check test examples.\n\n### Check type and value\n\n```ts\nlet testBoolean = new Validator(true, ValidatorType.boolean, [true]);\nconsole.log(testBoolean.isValid()); // true\n```\n\n## Extra\n\n_Credits_\nIcon made by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](https://www.flaticon.com/)\n","funding_links":[],"categories":["Modules","基础设施"],"sub_categories":["Utils","Assistants","Deno 源"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteocrippa%2Ffossil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatteocrippa%2Ffossil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteocrippa%2Ffossil/lists"}