Device UUID Browser Example

Download Back To CSSScript.Com

Lightweight device fingerprinting library for JavaScript. Generate UUIDs from browser characteristics. Works in Node.js and browsers with no dependencies.

Device UUID
Loading...

Device Information

Browser
-
Version
-
Operating System
-
Platform
-
Language
-
Color Depth
-
Screen Resolution
-
CPU Cores
-

Device Type Flags

Browser Flags

Platform Flags

Hash Functions

MD5 Hash (test string)
-
Integer Hash (test string)
-

Usage Example

<!-- Include the library -->
<script src="dist/index.browser.min.js"></script>

<script>
  // Create instance
  const device = new DeviceUUID.DeviceUUID();

  // Generate UUID
  const uuid = device.get();
  console.log('Device UUID:', uuid);

  // Parse user agent
  const info = device.parse();
  console.log('Device Info:', info);

  // Access specific properties
  console.log('Browser:', info.browser);
  console.log('OS:', info.os);
  console.log('Is Mobile:', info.isMobile);

  // Use hash functions
  const md5 = info.hashMD5('data');
  const intHash = info.hashInt('data');
</script>