stdnum-js
stdnum-js copied to clipboard
A JavaScript library to provide functions to handle, parse and validate standard numbers.
https://swedish.identityinfo.net/personalidentitynumber The format states the [-+] are optional. - 11900102-2384 -> invalid because it needs `+` to indicate over 100 years of age, also im thinking 1800 should be a...
It would be useful if each number type had an additional property 'example' that gives a compact form of the number. For example BR.cpf would have the property "39053344705" and...
* AF - Afganistan * AG - Antigua and Barbuda * AI - Anguilla https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Anguilla-TIN.pdf * AM - Armenia * AO - Angola https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Anguilla-TIN.pdf * AW - Aruba https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Aruba-TIN.pdf *...
Tax - [ ] fi/veronumero missing from TypeScript - [ ] de/handelsregisternummer missing from TypeScript - [ ] ro/cf missing from TypeScript Tax - may be present - [ ]...
Based on this document, there are 2 additional formats allowed for DNI with a designated special latter. I used these sites as refferences: https://www.strongabogados.com/tax-id-spain.php https://docedit.supernaeyeglass.com/articles/#!eyeglass-administration-guides-publication/content-classification-feature-guide/a/h3__54668704 https://www.esma.europa.eu/sites/default/files/library/esma70-1861941480-56_qas_mifir_data_reporting.pdf DNI (Documento Nacional de...
Hi! Congrats for the implementation of this python-original module in TS! Really helpful! I was wondering why there is a validatePerson and validateEntity method, but no validateVat method? Thanks!
Thanks for the great library! This is not a breaking issue for me but I had to post this as an issue since there is no discussions tab in the...
https://techscience.org/a/2015092901/ Note: Can find no reference for ARN format even in the foot notes of the above document 
It is recommended to store and process personnummer in 12 digit form (`YYYYMMDDBBBC`) to avoid ambiguity, since the 10 digit form with +/- depends on date of entry. Currently [personnummer.ts](https://github.com/koblas/stdnum-js/blob/main/src/se/personnummer.ts)...
The prefixes in the code are based on [documentation](https://webarchive.nationalarchives.gov.uk/ukgwa/20120207170042/http://www.hmrc.gov.uk/softwaredevelopers/rti/mig-rti-nvreq.pdf) archived in 2012. This PR updates the validation rules to use the most recent and accurate ones. New validations: https://www.gov.uk/hmrc-internal-manuals/national-insurance-manual/nim39110 >...