@ducksclan/fingerprint
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i @ducksclan/fingerprint

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

5.21 kB

Total Files

6

Last publish

Collaborators

  • hitachi567