# creditcard-generators

> this package is for generating random credit cards

Latest version **1.0.8** (published 2021-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install creditcard-generators
pnpm add creditcard-generators
yarn add creditcard-generators
bun add creditcard-generators
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-04-22 |
| First published | 2021-04-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | osakpolor-onaiwu |
| Maintainers | osakpolor-onaiwu |
| Keywords | cards, credit, debit |

## Links

- npm: https://www.npmjs.com/package/creditcard-generators
- npm.io page: https://npm.io/package/creditcard-generators

## Recent versions

- 1.0.8 (latest) — 2021-04-22
- 1.0.7 — 2021-04-22
- 1.0.6 — 2021-04-22
- 1.0.4 — 2021-04-22
- 1.0.3 — 2021-04-22
- 1.0.2 — 2021-04-22
- 1.0.1 — 2021-04-22
- 1.0.0 — 2021-04-22

## README

## creditcard-generators
### This Package is for Generating Random credit cards

> npm install creditcard-generators

####  This package contains 5 methods
1: **startWith** 
This allows you specify digits the card should start with. This method takes 2 argument 

- startWith: A string containing the digits the card should start with. should not be more than 10 characters

- howMany: This is a number. its the amount of cards you want to be generated.

Example
> const generate = require('creditcard-generators');
>
> const card = generate.startWith('1345',2);

2: **contain**
This method allows you specify which digit you want the card to contain. it takes an object as argument. The properties include

- cardType: This is a string. available card types are visa, mastercard, verve and discover.

- contains: This is a string that contains the digit you want the card to contain. should not exceed 10 characters.

- howMany: This is a number. its the amount of cards you want to be generated.

Example
> const generate = require('creditcard-generators');
>
> const card = generate.contain({
>   cardType:'visa',
>   contains:'23543',
>   howMany:2
>   });

3: **endWith** 
This method allows you specify which digit you want the card to end with. it takes an object as argument. The properties include

- cardType: This is a string. available types are visa, mastercard, verve and discover.

- endWith: This is a string that contains the digit you want the card to end with. should not exceed 10 characters.

- howMany: This is a number. its the amount of cards you want to be generated.

Example
> const generate = require('creditcard-generators');
>
> const card = generate.endWith({
>  cardType:'visa',
>  contains:'23543',
>  howMany:2
>  });


4: **card**
This method allows you to generate a card by a specific issuer, by specifying the card type and issuer. it takes an object. you can also just specify the card type without specifying the issuer
The property includes

- cardType: This is a string. available types are visa, mastercard, verve and discover.

- issuer: the issuing bank. available issuers are zenith, bankofamerica, access,sterling and firstbank.
NB: available card type per isssuer include
    visa and verve - access
    visa and mastercard - firstbank
    visa and mastercard - bankofamerica
    mastercard - zenith
    verve - sterling


- howMany: This is a number. its the amount of cards you want to be generated.

Example
> const generate = require('creditcard-generators');
>
> const card = generate.card({
>   cardType:'visa',
>   issuer:'access',
>   howMany:2
>   });

Example without issuer
> const generate = require('creditcard-generators');
>
> const card = generate.card({
>   cardType:'discover',
>   howMany:2
>   });

5: **industry** This method allows you generate a card from a particular industry. it takes two argument

- industry: This is a string. Available industry includes health, banking, petroleum and airline.

- howMany: This is a number. its the amount of cards you want to be generated.

> const generate = require('creditcard-generators');
>
> const card = generate.industry('airline',2);

---
_Source: https://npm.io/package/creditcard-generators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
