Skip to content

DanielJDufour/typed-array-ranges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Get the Smallest and Largest Possible Numbers for a Typed Array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published