Creates a byte size in megabytes.
WHY: Provides a more readable way to specify sizes in MB.
number of megabytes
bytes equivalent
const uploadLimit = megabytes(10); // 10 MB upload limitconst cacheSize = megabytes(50); // 50 MB cache Copy
const uploadLimit = megabytes(10); // 10 MB upload limitconst cacheSize = megabytes(50); // 50 MB cache
Creates a byte size in megabytes.
WHY: Provides a more readable way to specify sizes in MB.