Logos DX
    Preparing search index...

    Function gigabytes

    • Creates a byte size in gigabytes.

      WHY: Provides a more readable way to specify sizes in GB.

      Parameters

      • n: number

        number of gigabytes

      Returns number

      bytes equivalent

      const diskQuota = gigabytes(100);  // 100 GB disk quota
      if (totalSize > gigabytes(5)) console.log('Large dataset');