JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4148
  • Score
    100M100P100Q120519F
  • License MIT

Client fingerprint server implementation.

Package Exports

  • express-fingerprint

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-fingerprint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Fingerprint express middleware

Default implementation is Never trust clients, So collect only server-side information.
But you can push additional parameter with initialization config.

http://programmers.stackexchange.com/questions/122372/is-browser-fingerprinting-a-viable-technique-for-identifying-anonymous-users

Installation

npm install express-fingerprint

Usage

As a Express middleware

var Fingerprint = require('express-fingerprint')

app.use(Fingerprint({
    // Additional parameters
    paramters:[
        function(next) {
            // ...do something...
            next(null,{
            'param1':'value1'
            })
        },
        function(next) {
            // ...do something...
            next(null,{
            'param2':'value2'
            })
        },
    ]
}))

app.get('*',function(req,res,next) {
    // Fingerprint object
    console.log(req.fingerprint)
    // {
    // 		hash:"1bd360626197ba49ff9db0f8bb29c3e7",
    // 		components:{
    // 			param1:"value1",
    // 			param2:"value2"
    // 		}
    // }
})

List of fingerprinting sources

  • User Agent
  • HTTP_ACCEPT Headers
  • GEO-ip

License

MIT