0.0.1 • Published 6 years ago

@datagica/parse-ibans v0.0.1

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
6 years ago

Parse IBANs

Extracts IBANs from a text

Note: still experimental (for instance, word coordinates might be off)

Example:

      THIS IS NOT IBAN
      THIS IS NOT AN IBAN
      END OF SENTENCE.
      NL91 ABNA 0417 1643 00

Output:

  [
    {
      "ngram": "NL91 ABNA 0417 1643 00",
      "value": {
        "id": "iban-nl91abna0417164300",
        "label": {
          "en": "NL91 ABNA 0417 1643 00"
        },
        "isValid": true,
        "countryName": "Netherlands",
        "countryCode": "NL"
      },
      "score": 1,
      "position": {
        "sentence": 1,
        "word": 5,
        "begin": 101,
        "end": 123
      }
    }
  ]