{"id":26418662,"url":"https://github.com/devknown/alpha-id-js","last_synced_at":"2025-03-18T01:54:19.339Z","repository":{"id":176109138,"uuid":"655005638","full_name":"devknown/alpha-id-js","owner":"devknown","description":" Convert any integer to a short alphanumeric version. ","archived":false,"fork":false,"pushed_at":"2024-05-09T21:54:13.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T17:48:43.601Z","etag":null,"topics":["alphanumeric","alphanumeric-strings","integer","integer-to-alphanumeric","number-converter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/devknown.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-17T15:33:47.000Z","updated_at":"2024-09-18T14:36:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b814769d-3fad-425d-b433-7a2faabc234b","html_url":"https://github.com/devknown/alpha-id-js","commit_stats":null,"previous_names":["devknown/alpha-id-js"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devknown%2Falpha-id-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devknown","download_url":"https://codeload.github.com/devknown/alpha-id-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141583,"owners_count":20404835,"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":["alphanumeric","alphanumeric-strings","integer","integer-to-alphanumeric","number-converter"],"created_at":"2025-03-18T01:54:18.887Z","updated_at":"2025-03-18T01:54:19.332Z","avatar_url":"https://github.com/devknown.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch4 align=\"center\"\u003eAlphaID.js - Convert any integer to a short alphanumeric version\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-js/releases\"\u003e\n   \u003cimg alt=\"Release\" src=\"https://img.shields.io/github/v/release/devknown/alpha-id-js\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-js/actions/workflows/tests.yml\"\u003e\n   \u003cimg alt=\"Tests\" src=\"https://github.com/devknown/alpha-id-js/actions/workflows/tests.yml/badge.svg\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-js/actions/workflows/build.yml\"\u003e\n   \u003cimg alt=\"Build\" src=\"https://github.com/devknown/alpha-id-js/actions/workflows/build.yml/badge.svg\"\u003e\n   \u003ca href=\"https://github.com/devknown/alpha-id-js/blob/main/LICENSE\"\u003e\n   \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/devknown/alpha-id-js\"\u003e\n   \u003ca href=\"https://www.npmjs.com/package/alpha-id-js\"\u003e\n   \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dy/alpha-id-js\"\u003e\n\u003c/p\u003e\n\n# AlphaID.js\n\nAlphaID.js is a library that let you convert any integer to a short alphanumeric version. It can be useful for generating short, unique, and obfuscated identifiers.\n\n## AlphaID Library Versions\nThese versions should all function harmoniously, allowing for encoding in one language and decoding in another.\n- [PHP Version](https://github.com/devknown/alpha-id)\n- [JavaScript Version](https://github.com/devknown/alpha-id-js)\n- [Python Version](https://github.com/devknown/alpha-id-py)\n\n# Installation\n\nYou can install AlphaID.js using npm:\n\n```bash\nnpm i alpha-id-js\n```\n\nVia CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/alpha-id-js\"\u003e\u003c/script\u003e\n```\n\n# Getting Started\n\nSimple usage looks like:\n\n```javascript\nconst AlphaID = require('alpha-id-js');\n// or from browser -\u003e  \u003cscript src=\"https://unpkg.com/alpha-id-js\"\u003e\u003c/script\u003e \n\nconst encodedString = AlphaID.convert(258456357951);\nconsole.log(encodedString);\n// Output: '4y7exoH'\n\nconst originalNumber = AlphaID.recover('4y7exoH');\nconsole.log(originalNumber);\n// Output: 258456357951\n```\n\nConfiguring a Global Key\n\nYou can set a global key that will be used for encoding and decoding if no specific key is provided. This can be done using the `config` method:\n\n```javascript\nconst AlphaID = require('alpha-id-js');\n\nAlphaID.config('my_key');\n\nconst encodedString = AlphaID.convert(258456357951);\nconsole.log(encodedString);\n// Output: '4ymMZq9'\n\nconst originalNumber = AlphaID.recover('4ymMZq9');\nconsole.log(originalNumber);\n// Output: 258456357951\n```\n\n## License\n\nAlphaID is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevknown%2Falpha-id-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevknown%2Falpha-id-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevknown%2Falpha-id-js/lists"}