typed-array-ranges
v0.0.0
Published
Get the Smallest and Largest Possible Numbers for a Typed Array
Downloads
7,853
Maintainers
Readme
typed-array-ranges
Get the Smallest and Largest Possible Numbers for a Typed Array
install
npm install typed-array-ranges
usage
const { getMax, getMin, getRange } = require("typed-array-ranges");
const max = getMax('Uint8Array');
// max is 255
const min = getMin('Int8Array');
// min is -128
const range = getRange('Uint16Array');
// range is [0, 65535]