Install npm install rayid ESM: import RayID from "rayid"; CommonJS (if your toolchain still uses it): const RayID = require("rayid");