• This project
    • Loading...
  • Sign in

박건희 / emon_bot

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • emon_bot
  • node_modules
  • tesseract.js
  • src
  • worker-script
  • browser
  • cache.js
  • Minty U's avatar
    Add OCR Module · ba971b92
    ba971b92 Browse Files
    Minty U authored 2022-05-24 22:14:54 +0900
cache.js 212 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10
const { set, get, del } = require('idb-keyval');

module.exports = {
  readCache: get,
  writeCache: set,
  deleteCache: del,
  checkCache: (path) => (
    get(path).then((v) => typeof v !== 'undefined')
  ),
};