Socket
Book a DemoInstallSign in
Socket

namso-cc-gen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

namso-cc-gen

Generate random test credit card numbers for testing, validation and/or verification purposes. The Namso-Gen random test credit card entry system provides numbers are needed to test owned credit card systems and for research purposes. These numbers are no

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Namso-Gen

SimpleYTDL Logo

Generate random test credit card numbers for testing, validation and/or verification purposes. The Namso-Gen random test credit card entry system provides numbers are needed to test owned credit card systems and for research purposes. These numbers are not valid and do not enable transactions. The generator uses the Luhn algorithm.

HOW TO INSTALL?

npm i namso-cc-gen

Require to export function

//CommonJS
const namso = require('namso-cc-gen');

SIMPLE USAGE

usage of gen()

const namso = require('namso-cc-gen');

let res = namso.gen({
 ShowCCV: true,
 CCV: "999",
 ShowExpDate: true,
 ShowBank: false,
 Month: "01",
 Year: "2022",
 Quantity: "10",
 Bin: "5254xxxxxxxxxxxx",
 Format: "PIPE"
})
console.log(res)

Sample Sucess Response

//PIPE RESPONSE
5254460031640046|01|2022|999
5254078567780281|01|2022|999

//CSV RESPONSE
5254785172382671, 999, 01/2022
5254527764283317, 999, 01/2022

//XML RESPONSE
<xml>
<CreditCard>
<CardNumber>5254881033324265</CardNumber>
<CardCCV2>999</CardCCV2>
<CardExpDate>01/2022</CardExpDate>
</CreditCard>
<CreditCard>
<CardNumber>5254180230550511</CardNumber>
<CardCCV2>999</CardCCV2>
<CardExpDate>01/2022</CardExpDate>
</CreditCard>
</xml>

//JSON RESPONSE
{
{
"CreditCard":{
"CardNumber": "5254765208224550"
"CardCCV2": "999"
"CardExpDate": "01/2022"
}
},
{
"CreditCard":{
"CardNumber": "5254811860554320"
"CardCCV2": "999"
"CardExpDate": "01/2022"
}
}
}

All Params

ParamsIs RequiredTypeExplanationSample
ShowCCVyesbooleanshow ccv on resultsShowCCV: true
CCVyesstringit can be filled up to 4 digit ccv/just type rnd to randomizeCCV: "rnd"
ShowExpDateyesbooleanshow expiration date on resultsShowExpDate: true
ShowBankyesbooleanshow bank type on resultsShowBank: false
Monthyesstringstring value that ranges from 01-12 or rnd to randomizeMonth: "01"
Yearyesstringstring value that can be filled or randomizeYear: 'rnd'
Quantityyesstringstring value that represents the quantity/number of ccn to be generatedQuantity: "5"
Binyesstringstring value for a BIN or Bank Identification Number has xxxBin: "5254xxxxxxxxxxxx"
Formatyesstringthe default format is PIPE and others are CSV, XML and JSONFormat: "PIPE"
rndoptionalstringexample if you want to randomize the CCVCCV: "rnd"

Keywords

namso-gen

FAQs

Package last updated on 06 Oct 2022

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