bitset32
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

bitset32

bitset32 License: GPLv3 Follow this project on Twitter

High-performance, typesafe, small ordered set (up to 32 members) implemented in TypeScript

bitset32 is specialized typesafe set implementation for use with TypeScript numeric enum types having a maximum of 32 members. The members of the set are defined by a TypeScript numeric enum object. A bitset32 instance is itself represented by the lower 32 bits of a JavaScript primitive number value. This representation is extremely compact compared to a regular JavaScript Object. Not only is the runtime space and time performance bitset32 superb but the elegant TypeScript implementation makes for a high-quality, typesafe alternative to otherwise tedious coding with number-based bit flags.

Note: No code has been released for this package yet. This is just the preliminary usage documentation.

Installation

$ npm install --save bitset32

As with most npm packages bitset32 may also be installed with other package managers such as yarn and pnpm.

License

GPLv3.

Copyright © 2019 Justin Johansson (https://github.com/indiescripter).

Readme

Keywords

none

Package Sidebar

Install

npm i bitset32

Weekly Downloads

1

Version

0.1.2

License

GPL-3.0

Unpacked Size

37.9 kB

Total Files

3

Last publish

Collaborators

  • typeversity