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

iso-7064

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-7064

Implementation of ISO 7064 used in validation of format like IBAN, LEI, ...

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version Build Status GitHub license

ISO-7064

Implementation of ISO 7064 used in validation of format like IBAN, LEI, ..

Installation

Install using npm:

$ npm install iso-7064

Usage

var iso7064 = require('iso-7064');

iso7064.compute('969500KSV493XWY0PS'); // 54
iso7064.computeWithoutCheck('7245005WBNJAFHBD0S'); // 55

API

compute(rawValue: String) -> Number

Check requirements.
Returns result of modulo 97 applied to the String input rawValue.

Required

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

computeWithtoutCheck(rawValue: String)-> Number

Does NOT check requirements.
Returns result of modulo 97 applied to the String input rawValue.

Note: Use this method for faster performance if you already did the requirements checks in your code.

Required

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

Keywords

FAQs

Package last updated on 11 Apr 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