New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

assets/logo.png

64

package.json
{
"name": "@thomaschaplin/cusip-generator",
"version": "1.0.2",
"description": "Generate a valid CUSIP",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/thomaschaplin/cusip-generator.git"
},
"keywords": [
"cusip",
"generator",
"cusip-generator",
"thomaschaplin"
],
"author": "Thomas Chaplin",
"license": "MIT",
"bugs": {
"url": "https://github.com/thomaschaplin/cusip-generator/issues"
},
"homepage": "https://github.com/thomaschaplin/cusip-generator#readme"
"name": "@thomaschaplin/cusip-generator",
"version": "1.0.3",
"description": "Generate a valid CUSIPn",
"main": "build/index.js",
"files": [
"build",
"LICENSE",
"readme.md",
"assets/logo.png"
],
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"build": "rimraf ./build && tsc",
"watch": "rimraf ./build && tsc --watch",
"start": "node build/index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/thomaschaplin/cusip-generator"
},
"bugs": {
"url": "https://github.com/thomaschaplin/cusip-generator/issues"
},
"homepage": "https://github.com/thomaschaplin/cusip-generator#readme",
"keywords": [
"cusip",
"generator",
"cusip-generator",
"thomaschaplin"
],
"author": "Thomas Chaplin <thomaschaplin@outlook.com>",
"license": "MIT",
"devDependencies": {
"@types/node": "^13.9.2",
"husky": "^4.2.3",
"rimraf": "^3.0.2",
"typescript": "^3.8.3",
"@types/jest": "^26.0.0",
"jest": "^26.0.1"
}
}

@@ -0,22 +1,24 @@

<img src="assets/logo.png" alt="logo" width="201" height="245" />
# cusip-generator
![npm (scoped)](https://img.shields.io/npm/v/@thomaschaplin/cusip-generator)
[![GitHub issues](https://img.shields.io/github/issues/thomaschaplin/cusip-generator)](https://github.com/thomaschaplin/cusip-generator/issues)
[![GitHub forks](https://img.shields.io/github/forks/thomaschaplin/cusip-generator)](https://github.com/thomaschaplin/cusip-generator/network)
[![GitHub stars](https://img.shields.io/github/stars/thomaschaplin/cusip-generator)](https://github.com/thomaschaplin/cusip-generator/stargazers)
[![GitHub license](https://img.shields.io/github/license/thomaschaplin/cusip-generator)](https://github.com/thomaschaplin/cusip-generator/blob/master/LICENSE)
Generate a random CUSIP
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.
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.
## Install
## Usage
`npm i @thomaschaplin/cusip-generator`
## Usage
### Example Usage
### ES5
#### ES5
```js
const generateCusip = require('@thomaschaplin/cusip-generator')
console.log(generateCusip.generateCusip()) // 327492T38
const generateCusip = require("@thomaschaplin/cusip-generator");
console.log(generateCusip.generateCusip()); // 327492T38
```

@@ -27,7 +29,7 @@

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

@@ -39,3 +41,27 @@ ```js

## License
[MIT](./LICENSE)
## Setup
Make sure you have [Node.js](https://nodejs.org/en/) 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 test:coverage`
## License
[MIT](./LICENSE)
---
[Logo](https://www.clipartkey.com/view/iwiixw_yes-we-offer-both-short-term-interest-free/) graphic by <a href="https://www.clipartkey.com/upic/1115/">Perlenfuerdiehunde</a> from ClipArtKey.

Sorry, the diff of this file is not supported yet

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