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

fast-lei

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

fast-lei

Validation and control key generation for Legal Entity Identifier

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version Build Status GitHub license

LEI

Validation and control key generation for Legal Entity Identifier (LEI).

Usage

In node.js

var LEI = require('fast-lei');

LEI.isValid('969500T3MBS4SQAMHJ45'); // false
LEI.isValid('724500VKKSH9QOLTFR81'); // true

LEI.generate('969500KSV493XWY0PS'); // 969500KSV493XWY0PS33

API

isValid(value) -> Boolean

Check requirements.
Returns if the LEI check digits are valid.

Required

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

generate(value) -> String

Check requirements.
Returns the LEI check digit appended to the value.

Required

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

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