Install via npm
$ npm install --save swift-bic
var BIC = require( 'swift-bic' )
> BIC.isValid( 'HELADEF1JEN' )
< true
> BIC.parse( 'HELADEF1JEN' )
< BIC {
institution: 'HELA',
country: 'DE',
location: 'F1',
branch: 'JEN'
}
> var sparkasse = BIC.parse( 'HELADEF1JEN' )
> sparkasse.isValid()
< true
> sparkasse.toString()
< 'HELADEF1JEN'