Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Javascript tool to validate or generate control key for Legal Entity Identifier
Javascript tool to validate or generate control key for Legal Entity Identifier
var LEI = require('fast-lei');
LEI.isValid('969500T3MBS4SQAMHJ45'); // false
LEI.isValid('724500VKKSH9QOLTFR81'); // true
LEI.generate('969500KSV493XWY0PS'); // 969500KSV493XWY0PS33
LEI.getMod97('724500884QS64MG71N'); // 76
Check input value, must be not null, not undefined and of type string.
The stringified value must respect LEI format (/^[0-9A-Z]{18}[0-9]{2}$/).
Check the value againt modulo 97 and must be equals to 1.
Returns boolean.
Check input value, must be not null, not undefined and of type string.
The stringified value must respect LEI forma0 without ending control digits (/^[0-9A-Z]{18}$/).
Returns input value with check digits appended at the end.
Compute modulo 97 remainder.
Fast entry: you must ensure that given rawValue is not null or empty and respect format /^[0-9A-Z]{1,}$/.
Note: Remainder cannot be directly used as check digits. To generate check digits, please refer to method generate.
FAQs
Validation and control key generation for Legal Entity Identifier
The npm package fast-lei receives a total of 103 weekly downloads. As such, fast-lei popularity was classified as not popular.
We found that fast-lei demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.