UNPKG

rabin-wasm

Version:

Rabin fingerprinting implemented in AssemblyScript

13 lines (10 loc) 309 B
const Rabin = require('./rabin') const getRabin = require('../dist/rabin-wasm.node.js') const create = async (avg, min, max, windowSize, polynomial) => { const compiled = await getRabin() return new Rabin(compiled, avg, min, max, windowSize, polynomial) } module.exports = { Rabin, create }