{"library":"bson-objectid","type":"library","category":null,"description":"Lightweight standalone ObjectID constructor compatible with MongoDB BSON ObjectID API. v2.0.4 is stable; releases are infrequent. Features zero-dependency creation and parsing of ObjectIDs without mongodb/bson driver — ideal for browser or server-side apps that need ObjectID generation/comparison but not full MongoDB client. Provides full API parity with official BSON ObjectID including createFromTime, createFromHexString, isValid, getTimestamp, and immutable instances. Ships TypeScript types. Supports ESM and CJS.","language":"javascript","status":"active","version":"2.0.4","tags":["javascript","ObjectID","mongo","mongodb","bson","createFromHexString","hex","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install bson-objectid","imports":["import ObjectID from 'bson-objectid'","import type { ObjectID } from 'bson-objectid'","const ObjectID = require('bson-objectid')","import { ObjectID } from 'bson-objectid'"]},{"cmd":"yarn add bson-objectid","imports":[]},{"cmd":"pnpm add bson-objectid","imports":[]}],"homepage":"https://github.com/williamkapke/bson-objectid","github":"https://github.com/williamkapke/bson-objectid","docs":null,"changelog":null,"pypi":null,"npm":"bson-objectid","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}