UNPKG

crc

Version:

Module for calculating Cyclic Redundancy Check (CRC) for Node.js and the browser.

6 lines (5 loc) 233 B
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable no-prototype-builtins */ import { Buffer } from 'buffer'; const createBuffer = (value, encoding) => Buffer.from(value, encoding); export default createBuffer;