hashFilename = (name, outputOptions) => {
	const digest =
		/** @type {string} */
		(
			createHash(/** @type {HashFunction} */ (outputOptions.hashFunction))
				.update(name)
				.digest(outputOptions.hashDigest)
		);
	return digest.slice(0, 8);
}
@param {string} name a filename to hash
@param {OutputOptions} outputOptions hash function used
@returns {string} hashed filename