0.1.21 • Published 10 months ago

@dreamystify/fingrprint v0.1.21

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Getting started

Prerequisites

  • Node.js v18+
  • Redis v6+
# Initialize the repo
./.scripts/init.sh

Installation

npm install @dreamystify/fingrprint

To build the package locally with the TypeScript compiler, run:

npm run build

Usage

import Fingrprint from '@dreamystify/fingrprint';

const fingrprint = new Fingrprint({
    host: `localhost`,
    port: 6379,
    username: `username`,
    password: `password`
});

And to use it,

const id = await fingrprint.getId();
// 6936951099534350941n

const ids = await fingrprint.getIds(); // defaults to 1
// [6936951099534350941n]

const ids = await fingrprint.getIds(3);
// [6936951099534350941n, 6936951099534350942n, 6936951099534350943n]

Kudos

The project was inspired by Icicle, just setup for node.js.

0.1.20

10 months ago

0.1.21

10 months ago

0.1.19

10 months ago

0.1.17

10 months ago

0.1.11

12 months ago

0.1.12

12 months ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago