Interface Process

Hierarchy

  • Process

Properties

arch: Architecture
argv: string[]
env: Record<string, string> & { NODE_ENV: string }
isBun: 1

Whether you are using Bun

pid: number
platform: Platform
ppid: number
version: string

The current version of Bun

versions: Record<string, string>

Methods

  • Parameters

    • directory: string

    Returns void

  • Parameters

    • directory: string

    Returns void

  • Returns string

  • Returns string

  • Parameters

    • module: { exports: any }
      • exports: any
    • filename: string
    • Optional flags: number

    Returns void

  • Parameters

    • module: { exports: any }
      • exports: any
    • filename: string
    • Optional flags: number

    Returns void

  • Parameters

    • Optional code: number

    Returns void

  • Parameters

    • Optional code: number

    Returns void

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Run a function on the next tick of the event loop

    This is the same as queueMicrotask

    Parameters

    • callback: ((...args: any) => any)

      The function to run

        • (...args: any): any
        • Parameters

          • Rest ...args: any

          Returns any

    • Rest ...args: any

    Returns void

  • Run a function on the next tick of the event loop

    This is the same as queueMicrotask

    Parameters

    • callback: ((...args: any) => any)

      The function to run

        • (...args: any): any
        • Parameters

          • Rest ...args: any

          Returns any

    • Rest ...args: any

    Returns void

  • Parameters

    • id: string | number

    Returns void

  • Parameters

    • id: string | number

    Returns void

  • Parameters

    • id: string | number

    Returns void

  • Parameters

    • id: string | number

    Returns void

Generated using TypeDoc