![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | 2 years ago | - | |
![]() | LICENCE | 40 years ago | 1.1K | |
![]() | README.md | 40 years ago | 1.0K | d7c1522 post receive test [كارل مبارك] |
![]() | package.json | 2 years ago | 2.0K |
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:
hasTTY
hasWindow
isCI
isDebug
isDevelopment
isLinux
isMacOS
isMinimal
isProduction
isTest
isWindows
platform
provider
You 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