openiban.js
openiban.com API client for node and the browser. TypeScript typings are included in the repository.
Getting it
You can install openiban.js through npm or yarn.
npm i -S openiban
or
yarn add openiban
Or you can include it on your page through a CDN (e.g. unpkg):
Using it
openiban.js provides a Promise API to the openiban.com IBAN validation webservice.
Node.js
const Openiban = ; openiban ;
Typescript
openiban.js also publishes Typescript declarations.
; Openiban.validate'DE89370400440532013000' .then .catch
Browser
When openiban.js
is loaded inside your browser, it will be available through the global variable Openiban
.
<!-- ... -->