{"id":15641106,"url":"https://github.com/justjavac/deno-is","last_synced_at":"2025-04-30T09:06:51.299Z","repository":{"id":53460442,"uuid":"205117078","full_name":"justjavac/deno-is","owner":"justjavac","description":"Detect the running environment and context of the current script","archived":false,"fork":false,"pushed_at":"2021-03-30T08:31:09.000Z","size":33,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T11:41:46.519Z","etag":null,"topics":["check","cli","deno","env","mod","typescript"],"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/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-29T08:29:23.000Z","updated_at":"2022-09-24T12:05:51.000Z","dependencies_parsed_at":"2022-09-15T07:03:28.395Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno-is","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-is","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-is/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-is/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-is/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno-is/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221099309,"owners_count":16755913,"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":["check","cli","deno","env","mod","typescript"],"created_at":"2024-10-03T11:41:23.734Z","updated_at":"2024-10-22T12:42:49.915Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-is\n\n[![tag](https://img.shields.io/github/release/justjavac/deno-is)](https://github.com/justjavac/deno-is/releases)\n[![Build Status](https://github.com/justjavac/deno-is/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno-is/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno-is)](https://github.com/justjavac/deno-is/blob/master/LICENSE)\n[![](https://img.shields.io/badge/deno-v1.2-green.svg)](https://github.com/denoland/deno)\n\n\u003e Detect the running environment and context of the current script.\n\n## Usage\n\n```ts\nimport { isRunning, isRunningSync, isCI, isCISync } from \"https://deno.land/x/is/mod.ts\";\n\nisCISync();\n// =\u003e false\nisRunningSync(Deno.pid);\n// =\u003e true\n\nawait isCI();\n// =\u003e false\nawait isRunning(Deno.pid);\n// =\u003e true\n\n```\n\nor\n\n```ts\nimport { isCI, isCISync } from \"https://deno.land/x/is/ci.ts\";\n\nisCISync();\n// =\u003e false\n\nawait isCI();\n// =\u003e false\n```\n\n## Available methods\n\n_alphabetical order_:\n\n| Methods                     | Description                                                                            |\n|-----------------------------|----------------------------------------------------------------------------------------|\n| `isCI`/`isCISync`           | Whether the process is running on the CI server                                        |\n| `isDocker`/`isDockerSync`   | Whether the process is running inside Docker                                           |\n| `isGzip`/`isGzipSync`       | Whether a `Uint8Array` is a gzip file                                                  |\n| `isRunning`/`isRunningSync` | Whether the process(pid) is running                                                    |\n| `isSSH`/`isSSHSync`         | Whether the process is running inside SSH                                              |\n| `isWsl`/`isWslSync`         | Whether the process is running inside [Windows Subsystem for Linux][1]                 |\n\n[1]: https://msdn.microsoft.com/commandline/wsl/about\n\n### Credits\n\n- [justjavac](https://github.com/justjavac)\n\n### License\n\n[deno-is](https://github.com/justjavac/deno-is) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno-is","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno-is","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno-is/lists"}