{"id":18778652,"url":"https://github.com/viko16/egg-hashids","last_synced_at":"2025-12-17T16:30:14.434Z","repository":{"id":57220526,"uuid":"144671656","full_name":"viko16/egg-hashids","owner":"viko16","description":"hashids plugin for egg","archived":false,"fork":false,"pushed_at":"2018-08-14T07:00:21.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T11:47:32.043Z","etag":null,"topics":["egg","egg-plugin","hashids"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/egg-hashids","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/viko16.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-08-14T05:15:28.000Z","updated_at":"2018-08-14T07:00:22.000Z","dependencies_parsed_at":"2022-08-29T04:01:32.836Z","dependency_job_id":null,"html_url":"https://github.com/viko16/egg-hashids","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viko16%2Fegg-hashids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viko16%2Fegg-hashids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viko16%2Fegg-hashids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viko16%2Fegg-hashids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viko16","download_url":"https://codeload.github.com/viko16/egg-hashids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239690074,"owners_count":19681035,"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":["egg","egg-plugin","hashids"],"created_at":"2024-11-07T20:16:49.264Z","updated_at":"2025-12-17T16:30:14.366Z","avatar_url":"https://github.com/viko16.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-hashids\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-hashids.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-hashids\n[travis-image]: https://img.shields.io/travis/viko16/egg-hashids.svg?style=flat-square\n[travis-url]: https://travis-ci.org/viko16/egg-hashids\n[codecov-image]: https://img.shields.io/codecov/c/github/viko16/egg-hashids.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/viko16/egg-hashids?branch=master\n[david-image]: https://img.shields.io/david/viko16/egg-hashids.svg?style=flat-square\n[david-url]: https://david-dm.org/viko16/egg-hashids\n[snyk-image]: https://snyk.io/test/npm/egg-hashids/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-hashids\n[download-image]: https://img.shields.io/npm/dm/egg-hashids.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-hashids\n\n\u003e [hashids.js](https://github.com/ivanakimov/hashids.js) plugin for egg\n\n## Install\n\n```bash\n$ npm i egg-hashids --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.hashids = {\n  enable: true,\n  package: 'egg-hashids',\n};\n```\n\n## Configuration\n\nFor more information, please read [hashids.js](https://github.com/ivanakimov/hashids.js) document.\n\n```js\n// {app_root}/config/config.default.js\nexports.hashids = {\n  projectName: '',\n  minLength: 0,\n  alphabet: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890',\n\n  app: true,\n  agent: false,\n};\n```\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\n```js\nthis.app.hashids.encode(1);   // =\u003e jR\nthis.app.hashids.decode('jR') // =\u003e [ 1 ]\n```\n\n## Questions \u0026 Suggestions\n\nPlease open an issue [here](https://github.com/viko16/egg-hashids/issues).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviko16%2Fegg-hashids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviko16%2Fegg-hashids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviko16%2Fegg-hashids/lists"}