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.
Installation
npm install express-fingerprintUsage
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