JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q39020F
  • License MIT

A simple Block Check Character library.

Package Exports

  • node-bcc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-bcc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Maintenance Conventional Commits license npm npm

Travis Codecov David David Known Vulnerabilities

Issue Stats (long form) GitHub issues GitHub pull requests Greenkeeper badge GitHub code size in bytes

node-bcc

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

Things to come

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

How to use

Install

You can install node-bcc using npm.

npm install --save node-bcc

Usage

For the full (generated) documentation go to the Documentation

TypeScript

import {Bcc} from 'node-bcc';

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

JavaScript

const Bcc = require('node-bcc').Bcc;

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

Helper Classes

Hex

TypeScript
import {Hex} from 'node-bcc'

console.log(Hex.split('AABBCC'));
// [AA,BB,CC]
JavaScript
const Hex = require('node-bcc').Hex;

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

Ascii

TypeScript
import {Ascii} from 'node-bcc'

console.log(Ascii.asciiToByteArray('AABBCC'));
// [65, 66, 67]
JavaScript
const Ascii = require('node-bcc').Ascii;

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