Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iso-11649

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-11649

Creditor Reference validation and conversion following ISO 11649

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
230
increased by19.79%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 28 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc