Options
All
  • Public
  • Public/Protected
  • All
Menu

External module utils/node-async

Helpers to spawn processes and manipulate them as promises.

Index

Type aliases

Exit

Exit value of a spawned process: a return code or exit signal

Functions

asBuffer

  • asBuffer(val: string | Buffer): Buffer
  • Normalizes the provided argument to a Buffer.

    If it already is a buffer, return it as-is. Otherwise it is a string, build a Buffer from it using UTF-8 encoding.

    Parameters

    • val: string | Buffer

      Value to normalize.

    Returns Buffer

    Normalized Buffer value.

asSysPath

  • asSysPath(pathLike: string | URL): string

execFile

readText

  • readText(file: string | URL): Promise<string>

writeText

  • writeText(file: string | URL, text: string): Promise<void>

Generated using TypeDoc