2.4.2 • Published 3 years ago

node-bcc v2.4.2

Weekly downloads
23
License
MIT
Repository
github
Last release
3 years ago

Maintenance Conventional Commits license npm npm GitHub Workflow Status Codecov David David Known Vulnerabilities

node-bcc

A simple Block Check Character Library. This library provides its own TypeScript type definitions.

Features

  • Calculate BCC for string[], number[] and Buffer
  • Helper function to convert ASCII strings to number[]
  • Helper function to convett hex strings to string[]

Things to come

  • CLI application
  • 0x-prepended strings
  • Add more and better examples

Installation

You can install node-bcc using npm.

npm install --save node-bcc

Usage

For the full (generated) documentation go to the Documentation

import { Bcc } from 'node-bcc';

console.log(Bcc.calculate(['A4', '37', 'F6', 'F8', 'CD']));
// 80

Helper Classes

Hex

import { Hex } from 'node-bcc';

console.log(Hex.split('AABBCC'));
// [AA,BB,CC]

Ascii

import { Ascii } from 'node-bcc';

console.log(Ascii.asciiToByteArray('AABBCC'));
// [65, 66, 67]
2.4.1

3 years ago

2.4.2

3 years ago

2.4.0

3 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago