{"id":24022275,"url":"https://github.com/jakeburden/is-in-page","last_synced_at":"2025-09-10T06:34:41.560Z","repository":{"id":57277275,"uuid":"49234108","full_name":"jakeburden/is-in-page","owner":"jakeburden","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-07T22:31:19.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T07:32:39.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakeburden.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-07T22:16:04.000Z","updated_at":"2016-01-07T22:28:55.000Z","dependencies_parsed_at":"2022-09-15T19:10:34.520Z","dependency_job_id":null,"html_url":"https://github.com/jakeburden/is-in-page","commit_stats":null,"previous_names":["jekrb/is-in-page"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jakeburden/is-in-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fis-in-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fis-in-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fis-in-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fis-in-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakeburden","download_url":"https://codeload.github.com/jakeburden/is-in-page/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fis-in-page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274422261,"owners_count":25282123,"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-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2025-01-08T13:49:35.690Z","updated_at":"2025-09-10T06:34:41.502Z","avatar_url":"https://github.com/jakeburden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### isInPage ([from MDN](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains))\n\n    npm install is-in-page --save\n\n#### Example\n\nThis function checks to see if an element is in the page's body. As contains is inclusive and determining if the body contains itself isn't the intention of isInPage this case explicitly returns false.\n\n```js\nfunction isInPage (node) {\n  return (node === document.body) ? false : document.body.contains(node)\n}\n```\n\n#### npm usage\n\n```js\nvar isInPage = require('is-in-page')\nif (isInPage(document.getElementById('wow'))) {\n  console.log('cool')\n}\n\n```\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fis-in-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeburden%2Fis-in-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fis-in-page/lists"}