{"id":25343047,"url":"https://github.com/ganeshspatil/chai-asserttype","last_synced_at":"2026-05-02T02:39:16.424Z","repository":{"id":57196511,"uuid":"74045957","full_name":"GaneshSPatil/chai-asserttype","owner":"GaneshSPatil","description":"a simple chai plugin for js type assertions","archived":false,"fork":false,"pushed_at":"2016-11-18T06:03:59.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T13:53:39.890Z","etag":null,"topics":["assertions","chai","chai-asserttype","chai-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GaneshSPatil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T16:30:59.000Z","updated_at":"2017-03-03T16:02:46.000Z","dependencies_parsed_at":"2022-09-16T13:10:22.017Z","dependency_job_id":null,"html_url":"https://github.com/GaneshSPatil/chai-asserttype","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/GaneshSPatil%2Fchai-asserttype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GaneshSPatil%2Fchai-asserttype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GaneshSPatil%2Fchai-asserttype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GaneshSPatil%2Fchai-asserttype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GaneshSPatil","download_url":"https://codeload.github.com/GaneshSPatil/chai-asserttype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856561,"owners_count":21007620,"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":["assertions","chai","chai-asserttype","chai-plugin"],"created_at":"2025-02-14T10:29:55.229Z","updated_at":"2026-05-02T02:39:16.374Z","avatar_url":"https://github.com/GaneshSPatil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chai-asserttype\na simple chai plugin for js type assertions\n\n---\n\n## Installation\n```\nnpm install chai-asserttype\n```\n\n---\n\n## Usage\n\n### plug-in\n\n```\nconst chai = require('chai');\nconst asserttype = require('chai-asserttype');\nchai.use(asserttype);\n```\n\n### Number\nAsserts that type of `actual` is Number.\n\n```\nexpect(1).to.be.number();\nexpect(0).to.be.number();\nexpect(-1).to.be.number();\nexpect(63465789908753).to.be.number();\nexpect(27.11).to.be.number();\n```\n\n### String\nAsserts that type of `actual` is String.\n\n```\nexpect('').to.be.string();\nexpect('foobar').to.be.string();\n```\n\n### Boolean\nAsserts that type of `actual` is Boolean.\n\n```\nexpect(true).to.be.boolean();\nexpect(false).to.be.boolean();\n```\n\n### Object\nAsserts that type of `actual` is Object.\n\n```\nexpect({}).to.be.object();\n```\n\n### Array\nAsserts that type of `actual` is Array.\n\n```\nexpect([]).to.be.array();\nexpect([1, 2, 3]).to.be.array();\n```\n\n### Date\nAsserts that type of `actual` is date.\n\n```\nexpect(new Date()).to.be.date();\n```\n\n### Function\nAsserts that type of `actual` is Function.\n\n```\nexpect(() =\u003e true).to.be.function();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshspatil%2Fchai-asserttype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganeshspatil%2Fchai-asserttype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganeshspatil%2Fchai-asserttype/lists"}