env-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i env-type

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

2.97 kB

Total Files

6

Last publish

Collaborators

  • richienb