It's slightly cumbersome to import the countries. Have you considered adjusting the interface to something like this:
import { lookup } from 'jsvat';
let response = lookup('BE0411905847');
// where response would be the current response object
Perhaps there could be a property for groups of countries in the response, e.g. blocs: ['eu'], so one could quickly check if a VAT number is within the EU VAT scheme. Could add more relevant blocks in the future if needed.
Thanks for a great library!
Two thoughts:
blocs: ['eu']
, so one could quickly check if a VAT number is within the EU VAT scheme. Could add more relevant blocks in the future if needed.Happy to hear your thoughts!