@zeynepziyagil/typescript-lei-lib
v1.0.2
Published
TypeScript GLEIF LEI library npm package
Downloads
2
Readme
TypeScript LEI Library
API wrapper in TypeScript for GLEIF(LEI) API for Node & Browsers to be used in Company Service and the Web App.
Installation
npm install typescript-lei-lib
Usage
Importing the Library
import { getLEIRecordByID, getAutocompletions, getFuzzyCompletions } from 'typescript-lei-lib';
Example Usage
Get LEI Record by ID
const leiRecord = await getLEIRecordByID("789000Q21SW842S9IJ58");
console.log("LEI Record:", leiRecord);
Get Autocompletions
const autocompletions = await getAutocompletions("fulltext", "Global");
console.log("Autocompletions:", autocompletions);
Get Fuzzy Completions
const fuzzyCompletions = await getFuzzyCompletions("entity.legalName", "factbook");
console.log("Fuzzy Completions:", fuzzyCompletions);
Contributing
Feel free to contribute to this project. Your contributions are valued!
- Fork this repository
- Create your feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -am 'Add a new feature'
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request
Author
- @zeynepziyagil - Original Author