anatomic-text-extractor
v0.2.0
Published
An anatomic component for extracting text from files and fuzzy-searching within text.
Downloads
2
Readme
anatomic-text-extractor
An anatomic component for extracting text from files and fuzzy-searching within text.
Install
npm i anatomic-text-extractor
Usage
const TextExtractor = require("anatomic-text-extractor");
async function extract() {
const extractor = await TextExtractor().start({
ocr: {
detect() {
return ""; // just a dummy...
},
},
});
const opts = { path: "pizza.txt", mimetype: "text/plain" };
const text = await extractor.getRawText();
const found = extractor.fuzzySearch("tomato", text);
console.log(found);
}