|
|
vor 1 Jahr | |
|---|---|---|
| .. | ||
| dist | vor 1 Jahr | |
| LICENCE | vor 1 Jahr | |
| README.md | vor 1 Jahr | |
| package.json | vor 1 Jahr | |
Detect current Javascript environment
# Using Yarn
yarn add std-env
# Using npm
npm i std-env
// ESM
import { isWindows } from 'std-env'
// CommonJS
const { isCI } = require('std-env')
Available exports:
hasTTYhasWindowisCIisDebugisDevelopmentisLinuxisMacOSisMinimalisProductionisTestisWindowsplatformproviderYou can read more about how each flag works from ./src/index.ts.
List of well known providers can be found from ./src/providers.ts.
MIT