JSPM

typed-array-ranges

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30413
  • Score
    100M100P100Q151303F
  • License CC0-1.0

Get the Smallest and Largest Possible Numbers for a Typed Array

Package Exports

  • typed-array-ranges

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typed-array-ranges) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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]