node-dgram Library allows Firefox extensions to polyfill node dgrammodule using libdweb. Usage import drgamify from "@libdweb/node-dgram" const dgram = drgamify(browser) Install npm install @libdweb/node-dgram Hack You can run example from test directory by running npm run demo after npm install