Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hubot-credit-card-number-generator with all npm packages installed. Try it out:

require("hubot/package.json"); // hubot is a peer dependency. var hubotCreditCardNumberGenerator = require("hubot-credit-card-number-generator")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hubot-credit-card-number-generator v2.0.2

Generates credit card numbers for testing purposes

hubot-credit-card-number-generator

Build Status

A hubot script that uses creditcard-generator to generate test credit card numbers that pass the Luhn check.

See src/credit-card-number-generator.js for full documentation.

Installation

In hubot project repo, run:

npm install hubot-credit-card-number-generator --save

Then add hubot-credit-card-number-generator to your external-scripts.json:

[
  "hubot-credit-card-number-generator"
]

Usage

hubot ccnum [cctype] [num] - responds with test credit card numbers. cctype is one of: a|m|v|j|e|vo|dn|ds . Optionally, specify a number and it will return n card numbers.
cctypeDescription
aAmerican Express
dnDiners Card
dsDiscover Card
eenRoute Card
jJCB Card
mMaster Card
vVisa Card
voVoyager Card

Sample Interaction

user1>> hubot ccnum v 4
hubot>> 4072032880843113
4485046733373962
4916610646721325
4916721612089579

License

GNU GPL https://gnu.org/licenses/gpl.html

Contributing

Pull requests are welcome! Please see the CONTRIBUTING file for details.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free