{"id":13527174,"url":"https://github.com/junosuarez/objectid","last_synced_at":"2025-04-12T05:27:01.166Z","repository":{"id":6775140,"uuid":"8022161","full_name":"junosuarez/objectid","owner":"junosuarez","description":"node module: generate and validate mongodb objectId strings without dependencies","archived":false,"fork":false,"pushed_at":"2021-04-20T19:18:17.000Z","size":158,"stargazers_count":22,"open_issues_count":5,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T15:36:33.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-05T04:04:44.000Z","updated_at":"2022-04-15T12:16:34.000Z","dependencies_parsed_at":"2022-09-15T13:51:05.575Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/objectid","commit_stats":null,"previous_names":["agilediagnosis/objectid"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fobjectid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fobjectid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fobjectid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fobjectid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/objectid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248521356,"owners_count":21118055,"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":[],"created_at":"2024-08-01T06:01:42.545Z","updated_at":"2025-04-12T05:27:01.121Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# objectid\nmongodb objectid utilities\n\n## about\n\n1.x is probably the version you want to use in a browser. 3.x focuses on compatibility with the npm `mongodb` driver.\n\n## installation\n\n    $ npm install objectid\n\n## usage\n\n    var objectid = require('objectid')\n\n    var id = objectid()\n\n    objectid.isValid(id)\n    // =\u003e true\n\n    objectid.isValid('4frsdef43wzx')\n    // =\u003e false\n\n`objectid.isValid` returns true for `mongodb` native driver `ObjectID` objects, or any other representations with a `.toString` method which returns the hex string encoding of a valid objectid.\n\nCalling `objectid` with an existing objectid - whether a string, an object created by this module, an objectid created by another driver (such as the result of a query) - will cast the value to an instanceof this module. It will throw if the argument is not a valid ObjectId.\n\n## Static Methods\n\n### ObjectId.equals(oidA, oidB) =\u003e Boolean\nCurried to support creating equality predicates.\n\n### ObjectId.tryParse(oid, out, as) =\u003e Boolean\n\n### ObjectId.isValid(oid) =\u003e Boolean\n\n## Instance Methods\n\n### ObjectId#equals(oidB) =\u003e Boolean\n\n### ObjectId#toString() =\u003e String\n\n### ObjectId#toJSON() =\u003e String\n\n## running the tests\n\nFrom package root:\n\n    $ npm install\n    $ npm test\n\n## contributors\n\njden \u003cjason@denizac.org\u003e @leJDen\n\n## license\n\nMIT. (c) 2013 Agile Diagnosis \u003chello@agilediagnosis.com\u003e See LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fobjectid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fobjectid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fobjectid/lists"}