{"id":42415264,"url":"https://github.com/lyonbot/easy-vac","last_synced_at":"2026-01-28T01:58:53.415Z","repository":{"id":47129278,"uuid":"174847813","full_name":"lyonbot/easy-vac","owner":"lyonbot","description":"Validate-and-Clean made easy with TypeScript / JavaScript.","archived":false,"fork":false,"pushed_at":"2024-09-26T21:57:36.000Z","size":140,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T11:08:34.914Z","etag":null,"topics":[],"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/lyonbot.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-10T16:11:06.000Z","updated_at":"2020-05-09T13:08:04.000Z","dependencies_parsed_at":"2024-10-07T03:30:40.080Z","dependency_job_id":"10d847d6-28f1-4f04-a165-4fb9d0318b59","html_url":"https://github.com/lyonbot/easy-vac","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"f8c527f13c7337e12795476bdd24baed5a36eee6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lyonbot/easy-vac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyonbot%2Feasy-vac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyonbot%2Feasy-vac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyonbot%2Feasy-vac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyonbot%2Feasy-vac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyonbot","download_url":"https://codeload.github.com/lyonbot/easy-vac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyonbot%2Feasy-vac/sbom","scorecard":{"id":607451,"data":{"date":"2025-08-11","repo":{"name":"github.com/lyonbot/easy-vac","commit":"f8c527f13c7337e12795476bdd24baed5a36eee6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T01:55:28.936Z","repository_id":47129278,"created_at":"2025-08-21T01:55:28.936Z","updated_at":"2025-08-21T01:55:28.936Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28833235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"ssl_error","status_checked_at":"2026-01-27T23:25:58.379Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-28T01:58:53.362Z","updated_at":"2026-01-28T01:58:53.407Z","avatar_url":"https://github.com/lyonbot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy-vac\n\n[![Build Status](https://travis-ci.org/lyonbot/easy-vac.svg?branch=master)](https://travis-ci.org/lyonbot/easy-vac)\n[![npm](https://img.shields.io/npm/v/easy-vac.svg)](https://www.npmjs.com/package/easy-vac)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/easy-vac.svg)\n![npm type definitions](https://img.shields.io/npm/types/easy-vac.svg)\n![NPM License](https://img.shields.io/npm/l/easy-vac.svg)\n\n[\n  **[GitHub](https://github.com/lyonbot/easy-vac)** |\n  **[Home](https://lyonbot.github.io/easy-vac/)** |\n  **[Playground](https://lyonbot.github.io/easy-vac/#playground)** |\n  **[Documentation](https://github.com/lyonbot/easy-vac/wiki)** |\n  **[Examples](https://lyonbot.github.io/easy-vac/#examples)**\n]\n\neasy-vac is a JavaScript library which helps you validate and clean data.\n\n- **Better than JSON Schema**: get rid of JSON limits, define schemas in JavaScript style\n- **Auto Type Inferrence**: works perfectly with TypeScript\n- **Type Tolerance**: may convert values to correct type\n- **Highly Extensible**: define your own types and reuse them everywhere\n\n## Install\n\neasy-vac can be installed via:\n\n- via [NPM](https://www.npmjs.com/package/easy-vac): `npm install --save easy-vac`\n- via CDN:\n  - easy-vac only runs on modern browsers with ES6 support.\n  - UMD version is provided by default, with global name `EasyVAC`\n  - JSDelivr: \u003chttps://cdn.jsdelivr.net/npm/easy-vac\u003e\n  - UnPKG: \u003chttps://unpkg.com/easy-vac\u003e\n\n## Example ([more...](https://lyonbot.github.io/easy-vac/#examples))\n\n```typescript\nimport { VObject, VArray, VEnum, VTuple, VACError } from \"easy-vac\"\n\nconst OrderItem = VObject({\n  product: { type: \"string\", required: true },\n  count:   { type: \"int\",    default: 1, minimum: 1 },\n})\n\nconst Order = VObject.required({\n  guest:  { type: String },           // \u003c- type can also be \"string\"\n  items:  { type: VArray({ items: { type: OrderItem },\n                           minItems: 1,\n                           maxItems: 3 })\n          }\n})\n\nvar incoming = {\n  _id: \"xxxxx\",\n  guest: 12345,\n  items: [\n    { product: \"Ice Cream\" },\n    { product: \"Toast\", count: 3 },\n  ]\n}\n\nvar order = Order.vac(incoming) // \u003c-- throws VACError if failed\nconsole.log(order)\n```\n\nOutput:\n\n```javascript\n{\n  \"guest\": \"12345\",\n  \"items\": [\n    { \"product\": \"Ice Cream\", \"count\": 1 },\n    { \"product\": \"Toast\", \"count\": 3 }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyonbot%2Feasy-vac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyonbot%2Feasy-vac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyonbot%2Feasy-vac/lists"}