{"id":23086122,"url":"https://github.com/ryuapp/is-windows","last_synced_at":"2025-04-03T15:32:31.336Z","repository":{"id":268201563,"uuid":"903383358","full_name":"ryuapp/is-windows","owner":"ryuapp","description":"Returns true if the current platform is Windows","archived":false,"fork":false,"pushed_at":"2024-12-23T16:45:46.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T05:54:15.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jsr.io/@ryu/is-windows","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/ryuapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-14T13:20:19.000Z","updated_at":"2025-01-06T14:03:40.000Z","dependencies_parsed_at":"2024-12-15T06:23:39.638Z","dependency_job_id":"457e5574-5290-4741-ae14-9d21c0f0d289","html_url":"https://github.com/ryuapp/is-windows","commit_stats":null,"previous_names":["ryuapp/is-windows"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuapp%2Fis-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuapp%2Fis-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuapp%2Fis-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuapp%2Fis-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryuapp","download_url":"https://codeload.github.com/ryuapp/is-windows/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027666,"owners_count":20871570,"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-12-16T18:16:29.367Z","updated_at":"2025-04-03T15:32:31.317Z","avatar_url":"https://github.com/ryuapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-windows\n\nReturns true if the current platform is Windows.\\\nIt works with multiple JavaScript runtimes(Deno, Node.js, Bun) and browsers.\n\n```ts\nimport { isWindows } from \"@ryu/is-windows\";\n\nconsole.log(isWindows());\n```\n\n## Recipes\n\nWe can easily identify Windows without using this library.\n\n### Deno\n\n```ts\nconsole.log(Deno.build.os === \"windows\");\n```\n\n### Node.js, Bun\n\n```ts\nconsole.log(process.platform === \"win32\");\n```\n\n## Browser\n\n```ts\nconsole.log(window.navigator.userAgent.includes(\"Windows\"));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuapp%2Fis-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryuapp%2Fis-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuapp%2Fis-windows/lists"}