New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typed-numbers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-numbers

Super simple type-safe fixed-length integers for TypeScript/JavaScript 🔢

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

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';

Keywords

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc