@transmute/compressable-bitstring
TypeScript icon, indicating that this package has built-in type declarations

0.7.0-unstable.82 • Public • Published

@transmute/compressable-bitstring

npm i @transmute/compressable-bitstring@latest --save

Usage

import { Bitstring } from '@transmute/compressable-bitstring';
const bitstring = new Bitstring({ length: 8 });
bitstring.set(4, true);
expect(bitstring.get(3)).toBe(false);
expect(bitstring.get(4)).toBe(true);
expect(await bitstring.encodeBits()).toBe('H4sIAAAAAAAAAxMAAOn_tc8BAAAA');

About

This module is based on / interoperable with digitalbazaar/bitstring.

Readme

Keywords

none

Package Sidebar

Install

npm i @transmute/compressable-bitstring

Weekly Downloads

202

Version

0.7.0-unstable.82

License

Apache-2.0

Unpacked Size

242 kB

Total Files

18

Last publish

Collaborators

  • ipbyrne
  • or13
  • transmute-ci