@cumulus/checksum
What is Cumulus?
Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's
future Earth science data streams.
Cumulus Documentation
Checksum
The @cumulus/checksum
library provides checksum functionality used by Cumulus packages and tasks.
Currently the supported input includes file streams, and supported checksum algorithms include
cksum
and the algorithms available to the crypto
package, as documented here.
Usage
const fs = require('fs');
const { generateChecksumFromStream } = require('@cumulus/checksum');
const stream = fs.createReadStream('myDataFile.hdf');
const myCksum = generateChecksumFromStream('cksum', stream);