Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "process/umask/docs/types/index.d"

Index

Interfaces

Functions

Functions

Export assignment umask

  • umask(mask: number | string, options?: Options): number | string
  • umask(options?: Options): number | string
  • Get/set the process mask.

    Notes

    • If provided a mask, the function sets the current mask and returns the previous process mask. Otherwise, the function returns the current process mask.
    throws

    must provide valid options

    throws

    must provide a parseable expression mask

    Parameters

    • mask: number | string

      mask

    • Optional options: Options

      options

    Returns number | string

    process mask

    Example

    var mask = umask();
    // returns <number>
  • Get/set the process mask.

    throws

    must provide valid options

    Parameters

    • Optional options: Options

      options

    Returns number | string

    process mask

    Example

    var mask = umask();
    // returns <number>