From 59b8a2e04e9f1375ece85753eb3baa2a761cb4c6 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 22 Jan 2024 09:48:03 -0500 Subject: [PATCH] chore: convert esm example to cjs --- examples/{esm.mjs => common.cjs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename examples/{esm.mjs => common.cjs} (87%) 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');