Skip to content

Richienb/env-type

Repository files navigation

Env type Travis CI Build Status

Get the type of environment the script is running in.

NPM Badge

Install

npm install env-type

Usage

const envType = require("env-type");

envType
//=> 'node' (When using NodeJS)

API

envType

Type: "browser" | "worker" | "node" | undefined

The type of environment the script is running in.

About

Get the type of environment the script is running in.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published