# is-unix

> Determines if a platform is UNIX-like.

Latest version **2.0.14** (published 2025-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-unix
pnpm add is-unix
yarn add is-unix
bun add is-unix
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.14 |
| Published | 2025-11-21 |
| First published | 2016-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12 |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Kiko Beats |
| Maintainers | kikobeats |

## Links

- npm: https://www.npmjs.com/package/is-unix
- Repository: https://github.com/kikobeats/is-unix
- Homepage: https://github.com/Kikobeats/is-unix
- Issues: https://github.com/Kikobeats/is-unix/issues
- npm.io page: https://npm.io/package/is-unix

## Recent versions

- 2.0.14 (latest) — 2025-11-21
- 2.0.13 — 2025-10-15
- 2.0.12 — 2025-09-05
- 2.0.11 — 2025-08-12
- 2.0.10 — 2023-10-24
- 2.0.9 — 2023-09-05
- 2.0.8 — 2023-09-05
- 2.0.7 — 2022-05-17
- 2.0.6 — 2022-04-11
- 2.0.5 — 2022-04-01
- 2.0.4 — 2022-03-02
- 2.0.3 — 2022-02-25
- 2.0.2 — 2022-02-24
- 2.0.1 — 2021-09-26
- 2.0.0 — 2021-09-26
- … 3 more at https://npm.io/package/is-unix/versions

## README

# is-unix

![Last version](https://img.shields.io/github/tag/Kikobeats/is-unix.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/is-unix.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/is-unix)
[![NPM Status](https://img.shields.io/npm/dm/is-unix.svg?style=flat-square)](https://www.npmjs.org/package/is-unix)

> Determines if a platform is UNIX-like.

## Install

```bash
$ npm install is-unix --save
```

## Usage

```js
const isUnix = require('is-unix')

isUnix('win32') // => false
isUnix('darwin') // => true
isUnix('linux') // => true
isUnix('freebsd') // => true
isUnix('sunos') // => true
```

## API

### isUnix(platform)

#### platform

Type: `string`

## License

MIT © [Kiko Beats](http://kikobeats.com)

---
_Source: https://npm.io/package/is-unix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
