{"library":"mongodb-moment","type":"library","category":null,"description":"Plugin for the MongoDB Node.js driver that enables automatic serialization of Moment.js objects to Date objects when saving to MongoDB, and deserialization when retrieving. Current version 1.0.2 is stable, with no updates since 2017. It mutates the global Moment prototype to add a custom `toBSON` method, making it transparent to use. Compared to alternatives like `moment-mongoose` or manual transformation, this package integrates directly with the driver's serialization cycle.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript","mongodb","moment","date"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-moment","imports":["require('mongodb-moment')(moment);","const moment = require('moment'); require('mongodb-moment')(moment);","import 'mongodb-moment'; // assuming type definitions exist"]},{"cmd":"yarn add mongodb-moment","imports":[]},{"cmd":"pnpm add mongodb-moment","imports":[]}],"homepage":"https://github.com/boosterfuels/mongodb-moment#readme","github":"git://github.com/boosterfuels/mongodb-moment","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-moment","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}