UNPKG

tika-server

Version:

Apache Tika Server as a Background Service

19 lines (14 loc) 337 B
const TikaServer = require(".") ;(async () => { const ts = new TikaServer() ts.on("debug", (msg) => { console.log(`DEBUG: ${msg}`) }) await ts.start() await ts.queryText("foo").then((data) => { console.log(data) }) await ts.stop() })().catch((err) => { console.log(`ERROR: ${err}`) })