UNPKG

web-video-creator

Version:

A framework for creating videos based on Node.js + Puppeteer + FFmpeg.

33 lines (27 loc) 617 B
import fs from "fs-extra"; export default { /** * 清理浏览器缓存 */ async cleanBrowserCache() { await fs.emptyDir("tmp/browser"); }, /** * 清理预处理器缓存 */ async cleanPreprocessCache() { await fs.emptyDir("tmp/preprocessor"); }, /** * 清理合成器缓存 */ async cleanSynthesizeCache() { await fs.emptyDir("tmp/synthesizer"); }, /** * 清理本地字体缓存 */ async cleanLocalFontCache() { await fs.emptyDir("tmp/local_font"); } };