{"id":14989717,"url":"https://github.com/arunahk/license-key-gen","last_synced_at":"2025-08-20T20:32:14.721Z","repository":{"id":42244958,"uuid":"129684706","full_name":"arunahk/license-key-gen","owner":"arunahk","description":"Generate license keys for given company details","archived":false,"fork":false,"pushed_at":"2022-12-30T19:37:19.000Z","size":388,"stargazers_count":73,"open_issues_count":12,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-07T08:16:38.158Z","etag":null,"topics":["chai","license-generator","licensing","mocha","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arunahk.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-16T04:28:52.000Z","updated_at":"2025-05-20T13:51:47.000Z","dependencies_parsed_at":"2023-01-31T14:35:33.658Z","dependency_job_id":null,"html_url":"https://github.com/arunahk/license-key-gen","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/arunahk/license-key-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunahk%2Flicense-key-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunahk%2Flicense-key-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunahk%2Flicense-key-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunahk%2Flicense-key-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arunahk","download_url":"https://codeload.github.com/arunahk/license-key-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunahk%2Flicense-key-gen/sbom","scorecard":{"id":210071,"data":{"date":"2025-08-11","repo":{"name":"github.com/arunahk/license-key-gen","commit":"8b78dbc7e840c2bd89b754676292d0a9bfe8c935"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T00:37:11.910Z","repository_id":42244958,"created_at":"2025-08-17T00:37:11.910Z","updated_at":"2025-08-17T00:37:11.910Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chai","license-generator","licensing","mocha","nodejs"],"created_at":"2024-09-24T14:18:49.053Z","updated_at":"2025-08-20T20:32:14.443Z","avatar_url":"https://github.com/arunahk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/arunahk/license-key-gen.svg?branch=master)](https://travis-ci.org/arunahk/license-key-gen)\n\n# license-key-gen\n- Generate license keys for given company details\n- The [license-key-gen](https://www.webisto.tech) library exported as [Node.js](https:nodejs.org/) modules.\n\n## Source\nThis project has been imported from [license-key-gen](https://www.npmjs.com/package/license-key-gen) in npm.org.\n\n## Docs\n\nGenerate a License Key and validate the license. This is typically used for software licensing (serial number).\n\n## Installation\n```\nnpm install license-key-gen\n```\n\n## Data Structure\nTo create a license key - Enter the users information that your are able to recieve\n\nThis object can be any data you wish to tie the license to - format Object\n```\nvar userInfo = {company:\"webisto.tech\",street:\"123 licenseKey ave\", city:\"city/town\", state:\"State/Province\", zip:\"postal/zip\"}\n```\nMust include:\n1) ProductCode (string) - product abbr name, can be any size\n2) AppVersion (string) - optional if you want to tie the license to a version number\n3) osType (string) - lock the license to a specific operating system\n    supported: \n    Windows: WIN, WIN7, WIN8,WIN10\n    Macintosh: OSX, OSX1, OSX2, OSX3, OSX4, OSX5, OSX6, OSX7, OSX8, OSX9, OSX10, OSX11, OSX12\n    Apple Mobile: IOS, IOS5, IOS6, IOS7, IOS8, IOS9,IOS10\n    Google Mobile: ANDROID, ANDROID2, ANDROID3, ANDROID4, ANDROID43, ANDROID44, ANDROID5, ANDROID6, ANDROID7\n    OTHER\n\n```\nvar userLicense = {info:userInfo, prodCode:\"LEN100120\", appVersion:\"1.5\", osType:'IOS8'} \n```\n\n## Init\n```\nvar licenseKey = require('license-key-gen');\n```\n\n## Create a License Key\nThen run the following code to recieve the License for the client\nThis function to be run ONLY for you to generate the license code for the client\n```\nvar licenseKey = require('license-key-gen');\n\nvar userInfo = {company:\"webisto.tech\",street:\"123 licenseKey ave\", city:\"city/town\", state:\"State/Province\", zip:\"postal/zip\"}\nvar licenseData = {info:userInfo, prodCode:\"LEN100120\", appVersion:\"1.5\", osType:'IOS8'}\n\ntry{\n    var license = licenseKey.createLicense(licenseData)\n    console.log(license);\n}catch(err){\n    console.log(err);\n}\n```\n\nif success returns\n```\n{ errorCode: 0,  message: 'ok',  license: 'W0247-4RXD3-6TW0F-0FD63-64EFD-38180' }\n```\n\nif error, returns\n```\n{ errorCode: 1002, message: 'product code missing' }\n```\n\n## Validate a License Key\nOn client side your application will pass the user information (Data Structure) and License Key:\n```\nvar licenseKey = require('license-key-gen');\n\nvar userInfo = {company:\"webisto.tech\",street:\"123 licenseKey ave\", city:\"city/town\", state:\"State/Province\", zip:\"postal/zip\"}\nvar licenseData = {info:userInfo, prodCode:\"LEN100120\", appVersion:\"1.5\", osType:'IOS8'}\n\ntry{\n    var license = licenseKey.validateLicense(licenseData, \"W0247-4RXD3-6TW0F-0FD63-64EFD-38180\");\n    console.log(license);\n}catch(err){\n    console.log(err);\n}\n```\nif success returns\n```\n{ errorCode: 0, message: 'ok' }\n```\n\nif error, returns\n```\n{ errorCode: 1006, message: 'license not valid' }\n```\n\n## TODO\n- maintain (save, delete, update, read) licenses and user registration information\n\n## Support\nTested in Chrome 53-54, Firefox 48-49, IE 11, Edge 14, Safari 9-10, Node.js 6-7, \u0026 PhantomJS 2.1.1.\u003cbr\u003e\nAutomated test runs are available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunahk%2Flicense-key-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farunahk%2Flicense-key-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunahk%2Flicense-key-gen/lists"}