diff --git a/examples/esm.mjs b/examples/common.cjs similarity index 87% rename from examples/esm.mjs rename to examples/common.cjs index 60d9080..02ed061 100644 --- a/examples/esm.mjs +++ b/examples/common.cjs @@ -1,4 +1,4 @@ -import { Client, Server } from 'node-osc'; +const { Client, Server } = require('node-osc'); const client = new Client('127.0.0.1', 3333); var server = new Server(3333, '0.0.0.0');