-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4da19fb
commit 0f296d4
Showing
5 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const mindee = require("mindee"); | ||
// for TS or modules: | ||
// import * as mindee from "mindee"; | ||
|
||
// Init a new client | ||
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" }); | ||
|
||
// Load a file from disk | ||
const inputSource = mindeeClient.docFromPath("/path/to/the/file.ext"); | ||
|
||
// Parse the file | ||
const apiResponse = mindeeClient.enqueueAndParse( | ||
mindee.product.ReceiptV5, | ||
inputSource | ||
); | ||
|
||
// Handle the response Promise | ||
apiResponse.then((resp) => { | ||
// print a string summary | ||
console.log(resp.document.toString()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters