UNPKG
tesseract.js
Version:
latest (6.0.1)
6.0.1
6.0.0
5.1.1
5.1.0
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.3
3.0.2
3.0.1
3.0.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
2.0.0-beta.2
2.0.0-beta.1
2.0.0-alpha.16
2.0.0-alpha.15
2.0.0-alpha.14
2.0.0-alpha.13
2.0.0-alpha.12
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.0.19
1.0.18
1.0.17
1.0.16
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
Pure Javascript Multilingual OCR
github.com/naptha/tesseract.js
naptha/tesseract.js
tesseract.js
/
src
/
worker-script
/
browser
/
cache.js
11 lines
(9 loc)
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
{
set
,
get
, del } = require(
'idb-keyval'
); module.exports = { readCache:
get
, writeCache:
set
, deleteCache: del, checkCache: path => (
get
(path).then(v =>
typeof
v !==
'undefined'
) ), };