Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-unix

kikobeats73.6kMIT2.0.10

Determines if a platform is UNIX-like.

readme

is-unix

Last version Coverage Status NPM Status

Determines if a platform is UNIX-like.

Install

$ npm install is-unix --save

Usage

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

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)

1.0.1 (2021-09-26)

1.0.0 (2016-06-20)