a webassembly crc64 plugin base on CRC64-ECMA182.js
** Please use version xxx.xxx or higher **
npm install oss-crc64-plugin --save
Introduce in the entry file
<script src="node_modules/oss-crc64-plugin/index.js"></script>
client.put("example",file, {
crc64: CRC64.crc64,
});
client.multipartUpload("example",file, {
crc64: CRC64.crc64,
});
client.get("example",file, {
crc64: CRC64.crc64,
});
Receive an object that will return the value of crc64
const crc = CRC64.crc64(file);
console.log(crc)
Check the crc64 value of the file
CRC64.crc64File(file, (err, crc)=>{
if(err) throw new Error('fail');
console.log(crc)
})