0.0.0 • Published 3 years ago

typed-array-ranges v0.0.0

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
3 years ago

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]