{"id":19280527,"url":"https://github.com/dmi3y/cardgen","last_synced_at":"2025-04-22T01:30:42.567Z","repository":{"id":57194397,"uuid":"43485709","full_name":"dmi3y/cardgen","owner":"dmi3y","description":"Randomized credit/debit card number generator with cli","archived":false,"fork":false,"pushed_at":"2015-10-05T06:46:10.000Z","size":180,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T10:54:01.861Z","etag":null,"topics":["algorithm","cli","debit-card-numbers","luhn-algorithm","random","random-generation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmi3y.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T08:22:27.000Z","updated_at":"2019-11-06T01:01:28.000Z","dependencies_parsed_at":"2022-09-01T00:27:09.693Z","dependency_job_id":null,"html_url":"https://github.com/dmi3y/cardgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmi3y%2Fcardgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmi3y%2Fcardgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmi3y%2Fcardgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmi3y%2Fcardgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmi3y","download_url":"https://codeload.github.com/dmi3y/cardgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250161915,"owners_count":21385007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","cli","debit-card-numbers","luhn-algorithm","random","random-generation"],"created_at":"2024-11-09T21:18:53.966Z","updated_at":"2025-04-22T01:30:42.332Z","avatar_url":"https://github.com/dmi3y.png","language":"JavaScript","readme":"## Card number generator\n\nGenerate random credit/debit card numbers for testing purposes.\n\nUsage from command line (globally installed `npm i -g cardgen`):\n\n\u003e cardgen visa discover -n 5\n\n\u003e visa 4814371752577513  \n\u003e discover 6521713793937678  \n\u003e visa 4012795915725090  \n\u003e discover 6502205537914199  \n\u003e visa 4279615567473583  \n\nAvailable vendor names are: `visa`, `master-card`, `diners-club`, `american-express`, `discover`, `jsb`. Multiply vendors are acceptable.\n\nIt is possible to add new vendor, have a look at examples into the `vendors` directory.\n\n`-n` flag is for repeating, in case no provided cli will take it as a number of vendors provided.\n\nFor the node module usage example have a look at `bin/cardgen` file.\n\n## FAQ\n\nQ. What does this code `..for (; i --\u003e 0 ;) {..` means?  \nA. This is fancy way to write reverse loop, which is arguably looks cleaner compared with classic version of it `..for(var i = array.length; i \u003e 0; i--)`. In fact construction `--\u003e` is combination of two operators `\u003e` and `--`, so every step `i` get compared if it is still more than zero and decremented by one afteword.\n\n## TODO\n\n- Split out cli and core generator as a separate modules\n- Make use in browser and other environments\n\n## Disclaimer\n\nThis software created to be used for testing purposes only.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmi3y%2Fcardgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmi3y%2Fcardgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmi3y%2Fcardgen/lists"}