0.0.1 • Published 2 years ago

@ducksclan/fingerprint v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

fingerprint

Passive fingerprinting for express.

Getting started

You need to install this module as a dependency of your nodejs project with any package manager.

$ npm install @ducksclan/fingerprint

or

$ yarn add @ducksclan/fingerprint

Usage

import fingerprint, { IpInfo } from '@ducksclan/fingerprint';

app.use(fingerprint());

app.get('/my/fingerprint', (req, res) => {
  res.send(req.fingerprint); // hashed string of length 32
});

app.get('/my/ip-info', (req, res) => {
  res.send(req.ipInfo); // instance of IpInfo
});

Links