UNPKG

tus-js-client-olalonde

Version:

A pure JavaScript client for the tus resumable upload protocol

15 lines (14 loc) 353 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = fingerprint; /** * Generate a fingerprint for a file which will be used the store the endpoint * * @param {File} file * @return {String} */ function fingerprint(file) { return ["tus", file.name, file.type, file.size, file.lastModified].join("-"); }