Home

Awesome

is Where? 🙈

<a href="https://www.npmjs.com/package/is-where"><img src="https://img.shields.io/npm/v/is-where.svg" alt="Total Downloads"></a> <a href="https://www.npmjs.com/package/is-where"><img src="https://img.shields.io/npm/dw/is-where.svg" alt="Latest Stable Version"></a>

Very simple & small JS environment check functions.

npm i is-where
<!-- Or for deno available at: `"deno.land/x/is_where"` -->

Also check out is-what 🙉

Motivation

I built is-where because I kept Stack Overflowing the same things for every project.

I was looking for:

Usage

is-where is really easy to use, and most functions work just like you'd expect.

// import functions you want to use like so:
import { isBrowser, isNode, isWebKit } from 'is-where'
isBrowser() // true / false
isNode() // true / false
isWebKit() // true / false

List of functions

Features

Environments

Browsers

Meet the family (more tiny utils with TS support)

Source code

See the full source code here.