JSPM

receiptrs

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q19571F
  • License MIT

TypeScript library for scanning Serbian fiscal receipts

Package Exports

  • receiptrs
  • receiptrs/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (receiptrs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

��# ReceiptRS - Biblioteka za skeniranje srpskih ra una TypeScript/JavaScript biblioteka za skeniranje i obradu QR kodova sa srpskih fiskalnih ra una. ## =��� Opis ReceiptRS omoguava lako skeniranje i obradu ra una izdatih u Srbiji. Biblioteka automatski izvla i sve podatke sa ra una uklju ujui stavke, cene, poreze i metapodatke o prodajnom mestu. ## =؀� Instalacija bash npm install receiptrs ## =ء� Koriaenje javascript const { scanReceipt } = require('receiptrs'); async function skenirajRacun() { const url = 'https://suf.purs.gov.rs/v/?vl=...'; // URL sa QR koda const rezultat = await scanReceipt(url); if (rezultat.success) { console.log('' Ra un uspeano skeniran!'); console.log('Podaci:', rezultat.data); } else { console.log('L' Greaka:', rezultat.message); } } skenirajRacun();