{"id":17272738,"url":"https://github.com/cevek/assertio","last_synced_at":"2026-01-20T20:02:47.404Z","repository":{"id":44112653,"uuid":"195264903","full_name":"cevek/assertio","owner":"cevek","description":"Tiny assertion lib with typescript plugin to remove all assertations on production","archived":false,"fork":false,"pushed_at":"2023-01-07T07:29:15.000Z","size":761,"stargazers_count":3,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T09:20:40.853Z","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/cevek.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-04T15:23:37.000Z","updated_at":"2020-12-09T02:00:36.000Z","dependencies_parsed_at":"2023-02-06T14:46:02.454Z","dependency_job_id":null,"html_url":"https://github.com/cevek/assertio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cevek/assertio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevek%2Fassertio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevek%2Fassertio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevek%2Fassertio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevek%2Fassertio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cevek","download_url":"https://codeload.github.com/cevek/assertio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevek%2Fassertio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"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":"2024-10-15T08:49:20.860Z","updated_at":"2026-01-20T20:02:47.386Z","avatar_url":"https://github.com/cevek.png","language":"TypeScript","readme":"# Assertio\nAssertio is a tiny assertion library, similar to Node's built-in assert. \nIt makes testing much easier by giving you lots of assertions you can run against your code.\n\n\n## Assertations\n* `assert(value: boolean, msg?)`\n* `assertValue(value, predicate, msg?)`\n* `assertFn(value: () =\u003e boolean, msg?)`\n* `ensureArray(value, msg?)`\n* `ensureObject(value, msg?)`\n* `ensureString(value, msg?)`\n* `ensureNumber(value, msg?)`\n* `ensureBoolean(value, msg?)`\n* `ensureNonVoid(value, msg?)`\n* `ensureNonNull(value, msg?)`\n* `ensureNonNullable(value, msg?)`\n* `nonVoid(value, msg?)`\n* `nonNull(value, msg?)`\n* `nonNullable(value, msg?)`\n* `never(msg?)`\n* `neverValue(value, msg?)`\n* `castValue(value)`\n* `cast(value)`\n* `as(value)`\n* `maybe(value)`\n\n\n## TypeScript transformer plugin\nAssertio has a typescript transformer plugin to remove all assertations on production. \nSee how to use typescript plugins https://github.com/cevek/ttypescript\n\n`tsconfig.json`\n```\n{\n    \"compilerOptions\": {\n        // ...\n        \"plugins\": [\n            { \"transform\": \"assertio/transform\" },\n        ]\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcevek%2Fassertio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcevek%2Fassertio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcevek%2Fassertio/lists"}