Mindee API Helper Library for Node.js
Quickly and easily connect to Mindee's API services using Node.js.
Quick Start
Here's the TL;DR of getting started.
First, get an API Key
Then, install this library:
npm install mindee
Finally, Node.js away!
Off-the-Shelf Document
import { Client, InvoiceResponse } from "mindee";
const mindeeClient = new Client({apiKey: "my-api-key"});
const invoiceResponse = mindeeClient.docFromPath("/path/to/the/invoice.pdf")
.parse(InvoiceResponse);
invoiceResponse.then((resp) => {
console.log(resp.document);
});
Custom Document (API Builder)
import { Client, CustomResponse } from "mindee";
const mindeeClient = new Client({apiKey: "my-api-key"})
.addEndpoint({
accountName: "john",
documentType: "wsnine",
});
const customResponse = mindeeClient.docFromPath("/path/to/the/wsnine.jpg")
.parse(CustomResponse, {docType: "wsnine"});
customResponse.then((resp) => {
console.log(resp.document);
});
Further Reading
There's more to it than that for those that need more features, or want to
customize the experience.
All the juicy details are described in the
Official Documentation.
License
Copyright © Mindee
Available as open source under the terms of the MIT License.