{"id":17347186,"url":"https://github.com/ianmitchell/is-windows-bash","last_synced_at":"2025-06-21T03:38:20.849Z","repository":{"id":57277752,"uuid":"74922703","full_name":"IanMitchell/is-windows-bash","owner":"IanMitchell","description":"Determine if the script is running in WSL","archived":false,"fork":false,"pushed_at":"2016-12-23T21:29:40.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T15:45:00.645Z","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/IanMitchell.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-11-28T00:17:47.000Z","updated_at":"2016-11-28T00:20:40.000Z","dependencies_parsed_at":"2022-09-13T18:31:57.149Z","dependency_job_id":null,"html_url":"https://github.com/IanMitchell/is-windows-bash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fis-windows-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fis-windows-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fis-windows-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanMitchell%2Fis-windows-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanMitchell","download_url":"https://codeload.github.com/IanMitchell/is-windows-bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832746,"owners_count":20679702,"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-10-15T16:47:53.129Z","updated_at":"2025-03-27T11:19:40.053Z","avatar_url":"https://github.com/IanMitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-windows-bash\r\n\r\nExports a function that returns true if the script is running in a Windows Bash environment (WSL) and false otherwise.\r\n\r\n## Usage\r\n\r\n```\r\n$ npm install is-windows-bash --save\r\n```\r\n\r\n```javascript\r\nconst isWindowsBash = require('is-windows-bash');\r\n\r\nif (isWindowsBash()) {\r\n  console.log('Welcome to the future');\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Fis-windows-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmitchell%2Fis-windows-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmitchell%2Fis-windows-bash/lists"}