JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35864F
  • License MIT

Typed Numbers for JavaScript

Package Exports

  • typed-numbers

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-numbers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TypedNumbers - WIP!

About

I've made this library while building a little Intel 8080 emulator in JavaScript. I noticed the lack of typed numbers in JavaScript, and how useful they could be, and then made this idea into a whole library!

Naming scheme

The library uses the naming scheme from Rust.
So u8, u16, u32, u64, i8, i16, i32, i64, f32, f64.

If you want to use another naming scheme just rename the types at import.
For example:

import { i8 as int8 } from 'typed-numbers';

or:

import { i8 as byte } from 'typed-numbers';