pakdatakit 2.2.0
TypeScript (npm)
Section titled “TypeScript (npm)”getBankInfo(ibanOrCode)andgetBanks(): bank name, type (commercial, Islamic, microfinance, digital, EMI, foreign, specialized, central), whether it still exists, and its current code.- API reference and
llms.txt/llms-full.txtat https://chmuzamil.github.io/pakdatakit/. - New packages from this repository:
pakdatakitfor Python (PyPI) andpakdatakit-react(React inputs and a Raast QR component). pakdatakit/input: as-you-type formatters (formatCNICInput,formatPhoneInput,formatIBANInput) and checkers (checkCNICInput,checkPhoneInput,checkIBANInput) that returnempty,incomplete,validorinvalid.createRaastP2PQracceptsexpiresIn(30m,12h,7dor milliseconds) instead ofexpiresAt.validateRaastQr(): checks a scanned QR for a bad checksum, missing or invalid IBAN, expiry and other problems before payment.dataVersionexport andDATA.mddocumenting each dataset’s sources.- Banks:
NAYA(NayaPay),BKCH(Bank of China),SMES(SME Bank),WMBL(Mobilink Bank’s older code), and the digital banksRQMI(Raqami) andMSHQ(Mashreq Bank Pakistan). - Districts: Allai, Central Dir, Paharpur and Upper Swat (Khyber Pakhtunkhwa); Quetta East, Quetta West, North and South Dera Bugti, Barshore, Tump and Wadh (Balochistan, July 2026). 177 districts in total.
createRaastP2PQr/createMerchantQrreject amounts that would be written in exponent form (e.g.1e21).parseRaastQrreads only plain numeric amounts and rejects impossible expiry dates;createMerchantQrwrites account sub-fields in ID order.numberToWords/amountInWordsreject unknown languages.getDistrictProvinceno longer returns built-in object properties.- Khushhali Microfinance Bank’s IBAN code is
KHBL, notKMBL. - Removed
PAKB(Pak Oman), which no real IBAN supports. getDistrictProvincestill resolves districts that were split or renamed (Quetta, Dera Bugti, Upper Dera Bugti, South Waziristan).
Python (PyPI)
Section titled “Python (PyPI)”First release of the Python package.
- Pure Python 3.9+, no dependencies: the same functions as the npm package in snake_case, with the same datasets.
- Checked against the TypeScript library with over 12,000 shared test cases, so both give the same results.
- See the main CHANGELOG for what 2.2.0 includes.
Dart (pub.dev)
Section titled “Dart (pub.dev)”Initial Dart release, matching version 2.2.0 of the
pakdatakit npm package (datasets
checked 2026-10-14).
- Every function of the npm package, with the same names: CNIC, mobile numbers and networks, WhatsApp links, IBAN and banks, postal codes, cities and districts, address parsing, text and Roman Urdu, Hijri dates, public holidays, PKR formatting, amounts in words, NTN/STRN, landlines and other numbers, Raast QR codes, and form-input helpers.
- Pure Dart with no dependencies; the datasets are embedded, so it works on every platform, including Flutter web.
- Per-module libraries mirroring the npm entry points
(
package:pakdatakit/cnic.dart, …). - Tested against the 12,080 shared test vectors generated from the TypeScript library, on the Dart VM and compiled to JavaScript.