new Fingerprint2().get(function(result, components) {
console.log(result) // a hash, representing your device fingerprint
console.log(components) // an array of FP components
})
<script src="https://cdn.bootcss.com/fingerprintjs/0.5.3/fingerprint.js"></script>