{"id":694,"url":"https://github.com/sindresorhus/is-wsl","last_synced_at":"2025-04-08T00:37:38.512Z","repository":{"id":57277755,"uuid":"88415331","full_name":"sindresorhus/is-wsl","owner":"sindresorhus","description":"Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)","archived":false,"fork":false,"pushed_at":"2023-09-25T05:58:47.000Z","size":15,"stargazers_count":188,"open_issues_count":1,"forks_count":8,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-31T23:34:03.207Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2017-04-16T13:34:00.000Z","updated_at":"2025-01-07T20:11:28.000Z","dependencies_parsed_at":"2023-09-27T10:37:32.609Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/is-wsl","commit_stats":{"total_commits":22,"total_committers":7,"mean_commits":3.142857142857143,"dds":0.2727272727272727,"last_synced_commit":"98dfe3e4e6c7e8c544d942bd9c81f2c7830cf221"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-wsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-wsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-wsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-wsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/is-wsl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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-01-05T20:15:29.011Z","updated_at":"2025-04-08T00:37:38.496Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["WSL Tools","Repository","Libraries","JavaScript"],"sub_categories":["10. GUI Apps","OS Identification","OS identification"],"readme":"# is-wsl\n\n\u003e Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows)\n\nCan be useful if you need to work around unimplemented or buggy features in WSL. Supports both WSL 1 and WSL 2.\n\n## Install\n\n```sh\nnpm install is-wsl\n```\n\n## Usage\n\n```js\nimport isWsl from 'is-wsl';\n\n// When running inside Windows Subsystem for Linux\nconsole.log(isWsl);\n//=\u003e true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-wsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fis-wsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-wsl/lists"}