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

@thomaschaplin/cusip-generator

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thomaschaplin/cusip-generator

Generate a valid CUSIP

  • 1.0.22
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
logo

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.

Keywords

FAQs

Package last updated on 04 Jul 2023

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