@datagica/parse-ibans

0.0.1 • Public • Published

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
      }
    }
  ]

Readme

Keywords

none

Package Sidebar

Install

npm i @datagica/parse-ibans

Weekly Downloads

0

Version

0.0.1

License

GPL-3.0

Unpacked Size

6.31 kB

Total Files

5

Last publish

Collaborators

  • datagica