I am trying to add BrowserPrintJs library into my wordPress site , but this library has NPM package and i don’t know how to add library into wordPress

Broprint.js helps JavaScript developers code visitors identifier more simply, readably, and securely. Whether you need to find a unique visitor, do analytics, browser fingerprinting, or do anything of the like while even preventing frauds, we’ve got you covered at a cryptographically strong level. The best part? Our library is extremely lightweight and developer friendly- which means it won’t take a toll on your project, and it’s uber-simple to implement. This library works on the concept of canvas fingerprint and audio fingerprint, the final result which a user get is the combination of audio and canvas fingerprint. We are using cryptojs under the hood for encryptions but you can easily tweek the library to remove the dependency.

⚡ Fast implementation
Step 1: Install using npm or yarn:

Using npm:

//Install:
npm i @rajesh896/broprint.js
Using Yarn:

//Install:
yarn add @rajesh896/broprint.js

But now the question is how i can install the library into the wordPress site