1.0.2 • Published 6 years ago

bfcounter v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Big F(ast) Counter

Fast increment and decrement operations for big numbers represented as strings.

Installation

With npm: npm install --save bfcounter

With yarn: yarn add bfcounter

Usage

const bfc = require("bfcounter");

var counter = "100000000000000000000000000000000000000000000000000";

var incremented = bfc.increment(counter); // "100000000000000000000000000000000000000000000000001"

var decremented = bfc.decrement(incremented); // "100000000000000000000000000000000000000000000000000"