how to use dhive.js with node.js?
does anyone know how to use dhive.js with node.js? I have an .mjs file with some import statements in it, so I hoped to add dhive in there, I tried:
import defaultExport from './dhive.mjs' - no export named 'default',
import { dhive } from './dhive.mjs' - no export dhive,
import './dhive.mjs' - lists the whole code with some errors in it
how to use this thing?
I have a working code with this file in the browser where I just use <script src="./dhive.js"></script>
and I renamed it to dhive.mjs for node.
Edited by ali kim