UNPKG

js-randomness-predictor-cpp

Version:

Node.js native addon (C++) for high-performance Math.random() prediction

14 lines (10 loc) 371 B
import path from "path"; import { fileURLToPath } from "url"; import nodeGypBuild from "node-gyp-build"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const native = nodeGypBuild(__dirname); export default native; export const v8 = native.v8; export const chrome = native.chrome; export const firefox = native.firefox;