mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 10:03:24 +01:00
.. | ||
dist | ||
LICENCE | ||
package.json | ||
README.md |
std-env
Detect current Javascript environment
Installation
# Using Yarn
yarn add std-env
# Using npm
npm i std-env
Usage
// 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.
License
MIT