1.0.22 • Published 10 months ago

@thomaschaplin/cusip-generator v1.0.22

Weekly downloads
169
License
MIT
Repository
github
Last release
10 months ago

cusip-generator

cusip-generator is a Node.js 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

const generateCusip = require("@thomaschaplin/cusip-generator");
console.log(generateCusip.generateCusip()); // 327492T38

or

const { generateCusip } = require("@thomaschaplin/cusip-generator");
console.log(generateCusip()); // 5519069J1

ES6

import { generateCusip } from '@thomaschaplin/cusip-generator')
console.log(generateCusip()) // 112091HZ9

Setup

Make sure you have Node.js installed on your machine

Development

Installation

  • Clone this repository git clone git@github.com: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


Logo graphic by Perlenfuerdiehunde from ClipArtKey.

1.0.19

10 months ago

1.0.18

10 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.22

10 months ago

1.0.21

10 months ago

1.0.20

10 months ago

0.0.1

10 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago