1.0.0 • Published 1 year ago
node-taggun v1.0.0
node-taggun
typescript API wrapper for taggun.io
Installs
npm install node-taggun
Usage
import taggun from 'node-taggun';
taggun.init('TAGGUN API KEY', /**(url, base64) => { optional id gen function } */);
const tg = new taggun('https://example.com/my-file.pdf');
const data = await tg.process();
// {
// "totalAmount": {
// "data": 23.3,
// "confidenceLevel": 0.7216666666666667
// },
// "taxAmount": {
// "data": 3.04,
// "confidenceLevel": 0.7216666666666667
// },
// "date": {
// "data": "2016-12-22T12:00:00.000Z",
// "confidenceLevel": 0.7216666666666667
// },
// "merchantName": {
// "data": "Adina Apartment Hotel Auckland Britomart",
// "confidenceLevel": 0.7216666666666667
// },
// ...
// "confidenceLevel": 0.7216666666666667,
// "error": "string"
// }