{"id":16125551,"url":"https://github.com/semibran/rect","last_synced_at":"2025-09-08T00:32:51.457Z","repository":{"id":130492141,"uuid":"80551188","full_name":"semibran/rect","owner":"semibran","description":"Basic helper methods for rectangles","archived":false,"fork":false,"pushed_at":"2017-05-25T05:20:58.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T13:12:39.793Z","etag":null,"topics":["rect","rectangle"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/semibran.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":"2017-01-31T18:56:09.000Z","updated_at":"2017-05-24T07:01:58.000Z","dependencies_parsed_at":"2024-03-15T04:10:33.825Z","dependency_job_id":null,"html_url":"https://github.com/semibran/rect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/semibran/rect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Frect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Frect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Frect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Frect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/rect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Frect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117164,"owners_count":25225100,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["rect","rectangle"],"created_at":"2024-10-09T21:29:58.802Z","updated_at":"2025-09-08T00:32:51.414Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","readme":"# rect\n\u003e Basic helper methods for rectangles\n\nThe following methods can work on any objects of the form `{ x, y, width, height }`.\n\n## install\n```sh\nnpm install semibran/rect\n```\n\n## usage\n```javascript\nconst { contains, intersects } = require('rect')\n```\n\n### `contains(a, b)`\nDetermines if rectangle `a` contains rectangle `b`.\n\n### `equals(a, b)`\nDetermines if the four rectangle properties of `a` and `b` are equivalent.\n\n## license\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Frect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Frect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Frect/lists"}