npm

Need private packages and team management tools?Check out npm Orgs. »

iso-11649

1.0.0 • Public • Published

npm version Build Status GitHub license

iso-11649

European Structured Communication validation and conversion following ISO 11649.

Installation

Install using npm:

$ npm install iso-11649

Usage

In node.js

var ISO11649 = require('iso-11649');
 
ISO11649.generate('TU06FX'); // RF96TU06FX
ISO11649.generate('X2HU4TC28XTYLHASYWT91'); // RF14X2HU4TC28XTYLHASYWT91
 
ISO11649.validate('RF720HYA6'); // true
ISO11649.validate('RF19GAX8WS5JYOOUJ87'); // false

API

generate(rawValue: String) -> String

Check requirements.
Returns value as a valid Creditor Reference using rawValue.

Required

  • rawValue must be not Null
  • rawValue must be of type String
  • rawValue must respect format ^[A-Z0-9]{1,21}$

validate(rawValue: String) -> Boolean

Check requirements.
Returns if the Creditor Reference format against ISO 11649 specifications is valid.

Required

  • rawValue must be not Null
  • rawValue must be of type String
  • rawValue must respect format ^RF[0-9]{2}[A-Z0-9]{1,21}$

install

npm i iso-11649

Downloadsweekly downloads

3

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability