On this page

    process.constrainedMemory(): number
    Returns:number

    Gets the amount of memory available to the process (in bytes) based on limits imposed by the OS. If there is no such constraint, or the constraint is unknown, 0 is returned.

    See uv_get_constrained_memory for more information.