New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

creditor-id

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

creditor-id

Parse, format and validate a Creditor Identifier (CID)

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Creditor Identifier

npm npm license npm downloads build status

Install via npm

$ npm install creditor-id

Usage

var CreditorId = require( 'creditor-id' )

Parsing CIDs

var cid = new CreditorId( 'DE98ZZZ09999999999' ) // OR
var cid = CreditorId.parse( 'DE98ZZZ09999999999' )
CreditorId {
  countryCode: 'DE',
  checksum: '98',
  businessCode: 'ZZZ',
  nationalId: '09999999999'
}

Calculating and validating checksums

var checksum = cid.getChecksum() // > '98'
if( cid.check() ) {
  // The CID's checksum is valid
}

Formatting a CID

cid.toString() // > 'DE98ZZZ09999999999'

Keywords

gläubiger

FAQs

Package last updated on 01 Aug 2017

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