@ducksclan/fingerprint
v0.0.1
Published
passive fingerprinting for express
Downloads
4
Maintainers
Readme
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
});