UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

15 lines 618 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCacheFilePath = getCacheFilePath; const tslib_1 = require("tslib"); const crypto = tslib_1.__importStar(require("crypto")); const path = tslib_1.__importStar(require("path")); const get_cache_dir_path_1 = require("./get-cache-dir-path"); /** * Returns cache file path for given id * @param id - unique id for cache */ function getCacheFilePath(id) { return `${path.join((0, get_cache_dir_path_1.getCacheDirPath)(), crypto.createHash('md5').update(id).digest('hex'))}.json`; } //# sourceMappingURL=get-cache-file-path.js.map