| Did you know ... | Search Documentation: |
| Pack ltcodes -- node-red/README.md |
A Node-RED node that checks Lithuanian personal codes (asmens kodas), company codes (įmonÄs kodas), VAT numbers (PVM mokÄtojo kodas) and IBANs, and routes each message to a "valid" or an "invalid" output.
Useful in form, CRM and invoicing flows: stop a mistyped company code or IBAN before it reaches an accounting system.
From the Node-RED editor: Manage palette â Install â node-red-contrib-ltcodes.
Or in your Node-RED user directory (usually `~/.node-red`):
npm install node-red-contrib-ltcodes
The LT code check node is in the function category.
msg.payload by default.msg.ltcodes:
{
"code": "33309240064",
"valid": true,
"kinds": ["personal"],
"birthDate": { "year": 1933, "month": 9, "day": 24 }
}
kinds lists everything the code is valid as (personal, company, vat, iban); a company code is often also a valid VAT number. An example flow is under Import â Examples â node-red-contrib-ltcodes.
ltcodes package and pass the shared test cases of the ltcodes repository.
Made by KokybiskaSvetaine.lt. Licence: MIT.