Bitstring module tweaked to work with TypeScript and NestJS
npm install @sunbird-rc/bitstringTo install get the latest version from NPM:
```
npm install @sunbird-rc/bitstring
To install locally for development:
``
git clone https://github.com/techsavvyash/bitstring.git
cd bitstring
npm install
js
bitstring.set(1, true);
`$3
Gets the value of a bit for the given position.
`js
bitstring.get(3);
`$3
Compresses and encodes bits to a base64url encoded string.`js
await bitstring.encodeBits();
`$3
Decodes and uncompresses a given base64url encoded string to a Uint8Array.
`js
await Bitstring.decodeBits({encoded});
`$3
Compresses bits to a Uint8Array.
`js
await bitstring.compressBits();
`$3
Uncompresses compressed bits.
`js
await Bitstring.uncompressBits({compressed});
``Please follow the existing code style.
PRs accepted.
If editing the Readme, please conform to the
standard-readme specification.
Commercial support for this library is available upon request from
Digital Bazaar: support@digitalbazaar.com
BSD-3-Clause © Digital Bazaar