> const m3o = require("m3o")(process.env.M3O_API_TOKEN);
Should be using ES modules, and then allowing the creation of the m3o object with the supplied API token. This future proofs the code, because ES modules are part of the language spec. CommonJS/RequireJS was only ever a hack.
> import { m3o } from 'm3o';