# os_detect (Pub package)

> Platform independent OS detection.

- Version: 2.0.3
- Released: 2025-01-24
- License: License unknown
- Monthly downloads: 416,618
- Deprecated: yes
- Source repository: https://github.com/dart-lang/core ([in the GitHits index](https://index.githits.dev/repositories/github.com/dart-lang/core/))

## Pages

- [os_detect on GitHits](https://index.githits.dev/packages/pub/os_detect/)
- [Direct dependencies of os_detect 2.0.3](https://index.githits.dev/packages/pub/os_detect/2.0.3/dependencies/)
- [Security advisories of os_detect 2.0.3](https://index.githits.dev/packages/pub/os_detect/2.0.3/security/)
- [Documentation of os_detect 2.0.3](https://index.githits.dev/packages/pub/os_detect/2.0.3/docs/)

## Use it from a coding agent

GitHits gives coding agents version-aware access to os_detect: they can search, grep and read its source and documentation, and check its dependencies and security advisories, through MCP or the CLI instead of guessing from training data.

Connect an agent with one command, which detects installed agents, configures them and signs in:

```sh
npx githits@latest init
```

- [Remote MCP server](https://mcp.githits.com) (Streamable HTTP)
- [Agent documentation index](https://docs.githits.com/llms.txt)
- [API overview](https://docs.githits.com/api/overview)
- [Explore the GitHits index](https://index.githits.dev/)
