Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomaschaplin/cusip-generator
🆔 Committee on Uniform Securities Identification Procedures (CUSIP) generator
https://github.com/thomaschaplin/cusip-generator
bonds cusip finance fintech isin
Last synced: 11 days ago
JSON representation
🆔 Committee on Uniform Securities Identification Procedures (CUSIP) generator
- Host: GitHub
- URL: https://github.com/thomaschaplin/cusip-generator
- Owner: thomaschaplin
- License: mit
- Created: 2019-09-12T10:35:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T21:34:55.000Z (about 1 year ago)
- Last Synced: 2024-10-31T12:14:25.427Z (20 days ago)
- Topics: bonds, cusip, finance, fintech, isin
- Language: TypeScript
- Homepage:
- Size: 542 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# cusip-generator
cusip-generator is a [Node.js](https://nodejs.org/en/) library to generate
random CUSIP with a single API.CUSIP stands for Committee on Uniform Securities Identification Procedures. A
CUSIP number identifies most financial instruments, including: stocks of all
registered U.S. and Canadian companies, commercial paper, and U.S. government
and municipal bonds.## Usage
`npm i @thomaschaplin/cusip-generator`
### Example Usage
#### ES5
```js
const generateCusip = require("@thomaschaplin/cusip-generator");
console.log(generateCusip.generateCusip()); // 327492T38
```or
```js
const { generateCusip } = require("@thomaschaplin/cusip-generator");
console.log(generateCusip()); // 5519069J1
```#### ES6
```js
import { generateCusip } from '@thomaschaplin/cusip-generator')
console.log(generateCusip()) // 112091HZ9
```## Setup
Make sure you have [Node.js](https://nodejs.org/en/) installed on your machine
### Development
#### Installation
- Clone this repository
`git clone [email protected]:thomaschaplin/cusip-generator.git`
- Change directory `cd cusip-generator`
- Install the dependencies `npm install`
- Transpile the code `npm run build` or `npm run watch`#### Tests
- Run the tests `npm test`
- Run the tests with coverage `npm run test:coverage`## License
[MIT](./LICENSE)
---
[Logo](https://www.clipartkey.com/view/iwiixw_yes-we-offer-both-short-term-interest-free/) graphic by Perlenfuerdiehunde from ClipArtKey.