{"id":20661491,"url":"https://github.com/deepsyx/mongoose-minid","last_synced_at":"2025-07-31T17:05:56.748Z","repository":{"id":13394564,"uuid":"16082843","full_name":"deepsyx/mongoose-minid","owner":"deepsyx","description":"(NodeJS) ShortId for mongoose ODM.","archived":false,"fork":false,"pushed_at":"2016-08-30T21:31:57.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T08:06:10.325Z","etag":null,"topics":["javascript","mongodb","mongoose","nodejs","objectid","shortid"],"latest_commit_sha":null,"homepage":"","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/deepsyx.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":"2014-01-20T20:42:52.000Z","updated_at":"2017-08-29T12:13:03.000Z","dependencies_parsed_at":"2022-07-21T16:34:33.161Z","dependency_job_id":null,"html_url":"https://github.com/deepsyx/mongoose-minid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepsyx/mongoose-minid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsyx%2Fmongoose-minid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsyx%2Fmongoose-minid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsyx%2Fmongoose-minid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsyx%2Fmongoose-minid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepsyx","download_url":"https://codeload.github.com/deepsyx/mongoose-minid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsyx%2Fmongoose-minid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268074354,"owners_count":24191539,"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-07-31T02:00:08.723Z","response_time":66,"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":["javascript","mongodb","mongoose","nodejs","objectid","shortid"],"created_at":"2024-11-16T19:09:51.278Z","updated_at":"2025-07-31T17:05:56.717Z","avatar_url":"https://github.com/deepsyx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"THIS PACKAGE IS NO LONGER SUPPORTED AND WILL NOT BE UPDATED. I HIGHLY DISCOURAGE USING IT.\n================\n\n\nmongoose-minid\n================\n\nThis plugin is a highly customised version of mongoose-shortid, without bignum.\n\nYou can get it via npm by typing:\n\n```npm\nnpm install mongoose-minid\n```\n\nThis plugin provides a new Schema Type, ShortId, that can be used in place of ObjectId. The generated IDs are random url-safe strings of configurable length, represented in a 64 bit string.\n\nThis plugin will automatically retry inserts on a collision, up to a maximum of 5 retries.\n\n### What's the point?\n\nThis module is going to make your ObjectId from something like `507f191e810c19729de860ea` to just `Ng3zf_`\n\n### Usage\n\n```javascript\nvar mongoose = require('mongoose');\nvar ShortId = require('mongoose-minid');\n\nvar personSchema = mongoose.Schema({\n    _id: ShortId,\n    name: String\n});\n```\n\n### Options\n\nThe default options are:\n\n```javascript\nvar personSchema = mongoose.Schema({\n    _id: {\n        type: ShortId,\n        len: 7     // Length 7 characters\n    },\n    name: String\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsyx%2Fmongoose-minid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepsyx%2Fmongoose-minid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsyx%2Fmongoose-minid/lists"}