{"id":19696060,"url":"https://github.com/volijs/is-expected","last_synced_at":"2026-05-10T12:52:58.067Z","repository":{"id":147042257,"uuid":"171757396","full_name":"VoliJS/is-expected","owner":"VoliJS","description":"Run-time asserts library","archived":false,"fork":false,"pushed_at":"2019-02-21T20:29:11.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T09:41:30.709Z","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/VoliJS.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-02-20T22:12:25.000Z","updated_at":"2019-02-21T20:29:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"408434b4-b987-4b30-8b4c-9e51d1518710","html_url":"https://github.com/VoliJS/is-expected","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/VoliJS%2Fis-expected","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoliJS%2Fis-expected/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoliJS%2Fis-expected/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoliJS%2Fis-expected/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VoliJS","download_url":"https://codeload.github.com/VoliJS/is-expected/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241007678,"owners_count":19893045,"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":"2024-11-11T19:33:20.497Z","updated_at":"2026-05-10T12:52:53.033Z","avatar_url":"https://github.com/VoliJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Asserts\n\nAssert must start with `is(x)` followed by the sequence of checks. First failed assert in sequence will throw an exception.\n\n    is(x).check1.check2...\n\n## Checks\n\nCheck is a function taking the value and returning boolean. Checks can be created with the same sequence of checks starting with `is`.\n\n    const { check } = is.check1.check2...\n\n### Simple type checks\n\n- `is.undefined`\n- `is.integer`\n- `is.number`\n- `is.string`\n- `is.boolean`\n- `is.symbol`\n- `is.function`\n- `is.object`\n- `is.array`\n- `is.plainObject`\n- `is.instanceOf( T )`\n\n### Simple comparisons\n\n- `is.empty` - x is null or undefined.\n- `is.falsy` - !x.\n- `is.truthy` - !!x.\n- `is.eq( y )`\n- `is.le( y )`\n- `is.lt`\n- `is.ge`\n- `is.gt`\n- `is.stringLike( /regexp/ )`\n\n### Deep object checks\n\n- `is.arrayOf( check )`\n- `is.objectOf( check )`\n- `is.shape( { a : check, b : value, ... } )`\n\n### Combinators\n\n-  `is.either( is.string, is.number, ... )`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolijs%2Fis-expected","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolijs%2Fis-expected","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolijs%2Fis-expected/lists"}