{"id":26207207,"url":"https://github.com/oelin/is-chroot","last_synced_at":"2026-04-16T02:32:08.101Z","repository":{"id":65686335,"uuid":"597361736","full_name":"oelin/is-chroot","owner":"oelin","description":"Check whether the current process is running inside a chroot.","archived":false,"fork":false,"pushed_at":"2023-02-04T10:05:14.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T11:14:19.288Z","etag":null,"topics":["chroot","ext2","ext3","ext4","linux"],"latest_commit_sha":null,"homepage":"https://npmjs.com/is-chroot","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/oelin.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":"2023-02-04T10:04:01.000Z","updated_at":"2023-02-04T10:05:29.000Z","dependencies_parsed_at":"2023-02-18T15:31:25.678Z","dependency_job_id":null,"html_url":"https://github.com/oelin/is-chroot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oelin/is-chroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fis-chroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fis-chroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fis-chroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fis-chroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oelin","download_url":"https://codeload.github.com/oelin/is-chroot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oelin%2Fis-chroot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31868494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["chroot","ext2","ext3","ext4","linux"],"created_at":"2025-03-12T05:31:15.823Z","updated_at":"2026-04-16T02:32:08.080Z","avatar_url":"https://github.com/oelin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-chroot\n\nCheck whether the current process is running inside a chroot. Currently only supports ext2, ext3 and ext4 file systems.\n\n\n## Installation\n\n```sh\nnpm i is-chroot\n```\n\n## Usage\n\n```js\nimport isChroot from 'is-chroot'\n\nisChroot()\n```\n\nBehind the scenes `isChroot()` checks whether the inode of `/` is exactly `2`. If this isn't the case and the file system is ext2, ext3 or ext4 then it's likely that the current process is running inside a chroot. Please note that this is [only a heuristic](https://stackoverflow.com/questions/75182/detecting-a-chroot-jail-from-within) and can be improved by considering additional factors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelin%2Fis-chroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foelin%2Fis-chroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foelin%2Fis-chroot/lists"}