How to use NodeJS to identify a device and generate a unique code

use Node.js to output static pages. I want to generate a unique code to mark users.
use fingerprint2.min.js to enable on H5 pages. Now I"d like to ask if there is a fingerprint2.min.js-like package or other method on the Node side

.
Mar.01,2021

can identify the user with the information of user-agent .


exports.generateUUID = function () {

    var d = new Date().getTime();
    var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
        var r = (d + Math.random() * 16) % 16 | 0;
        d = Math.floor(d / 16);
        return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
    });
    return uuid;
};  
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34e83-2bf49.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34e83-2bf49.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?