{"id":15763475,"url":"https://github.com/shigma/chai-shape","last_synced_at":"2025-03-31T10:18:39.528Z","repository":{"id":57196631,"uuid":"433481030","full_name":"shigma/chai-shape","owner":"shigma","description":"extend chai with shape assertions","archived":false,"fork":false,"pushed_at":"2022-08-12T17:56:35.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T11:42:08.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/shigma.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":"2021-11-30T15:21:35.000Z","updated_at":"2022-05-14T19:17:39.000Z","dependencies_parsed_at":"2022-09-15T22:21:04.303Z","dependency_job_id":null,"html_url":"https://github.com/shigma/chai-shape","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/shigma%2Fchai-shape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fchai-shape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fchai-shape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fchai-shape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shigma","download_url":"https://codeload.github.com/shigma/chai-shape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450478,"owners_count":20779421,"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-10-04T11:42:06.746Z","updated_at":"2025-03-31T10:18:39.509Z","avatar_url":"https://github.com/shigma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chai-shape\n\n[![Codecov](https://img.shields.io/codecov/c/github/shigma/chai-shape?style=flat-square)](https://codecov.io/gh/shigma/chai-shape)\n[![npm](https://img.shields.io/npm/v/chai-shape?style=flat-square)](https://www.npmjs.com/package/chai-shape)\n\nExtend chai with shape assertions.\n\n```js\nimport { expect, use } from 'chai'\nimport shape from 'chai-shape'\n\nuse(shape)\n\n// use with array\nexpect([1, 2, 3]).to.have.shape([1, 2])\n\n// use with object\nexpect({ a: 1, b: 2 }).to.have.shape({ a: 1 })\n\n// use with nested array and object\nexpect({ a: { b: [1, 2] }}).to.have.shape({ a: { b: [1] }})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fchai-shape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshigma%2Fchai-shape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fchai-shape/lists"}