Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

hubot-credit-card-number-generator

2.0.4 • Public • Published

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.
cctype Description
a American Express
dn Diners Card
ds Discover Card
e enRoute Card
j JCB Card
m Master Card
v Visa Card
vo Voyager 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.

Install

npm i hubot-credit-card-number-generator

DownloadsWeekly Downloads

8

Version

2.0.4

License

MIT

Unpacked Size

58.4 kB

Total Files

12

Last publish

Collaborators

  • avatar