Nominal Package Missing

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

    3.2.1 • Public • Published

    std-env

    npm npm bundlephobia

    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

    Keywords

    none

    Install

    npm i std-env

    DownloadsWeekly Downloads

    1,539,345

    Version

    3.2.1

    License

    MIT

    Unpacked Size

    10.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • pi0