deno_bson Forked from npm package bson v4.5.3, now support for Deno. You can you like this: import * as bson from "https://deno.land/x/[email protected]/mod.ts"; console.log(new bson.ObjectId().toHexString()); // 6168f35c2aceb9b2e35b8093