mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-07 04:18:51 -05:00
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:
hasTTYhasWindowisCIisDebugisDevelopmentisLinuxisMacOSisMinimalisProductionisTestisWindowsplatformprovider
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