
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@opuscapita/field-validators
Advanced tools
Common library for master data field validations such as VAT ID, IBAN, etc.
Common library for master data field validations such as VAT ID, IBAN, etc.
The library has the following validators:
To have a look at the full API, please visit the related wiki page.
Install library by running:
npm install @opuscapita/field-validators
Perform a validation by doing:
const validators = require('@opuscapita/field-validators');
// validate an IBAN
validators.IBAN.isValid('DE10000000000000000000');
// validate a VAT number
validators.VAT.isValid('DE 10000000');
// validate a BIC
validators.BIC.isValid('DEDSLTJXXXX');
// validate a DUNS number
validators.DUNS.isValid('356932675');
// validate a GLN
validators.GLN.isValid('3569326752346');
// validate an OVT
validators.OVT.isValid('003708599126');
// validate a REGNO
validators.REGNO.isValid('Jena GnR 100008', 'DE');
// validate an ISR
validators.ISR.isValid('54-354567-8');
// validate an ABA
validators.ABA.isValid('051000017');
// validate an LeitwegID
validators.LEITWEGID.isValid('04011000-1234512345-06');
FAQs
Common library for master data field validations such as VAT ID, IBAN, etc.
We found that @opuscapita/field-validators demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.