"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checksum = exports.DefaultChecksumAlgorithm = void 0;
const hasha_1 = require("hasha");
exports.DefaultChecksumAlgorithm = 'sha256';
function checksum(path, algorithm = exports.DefaultChecksumAlgorithm) {
    return (0, hasha_1.fromFile)(path, {
        algorithm: algorithm
    });
}
exports.checksum = checksum;
