mirror of
https://github.com/esiur/esiur-js.git
synced 2025-06-26 23:03:13 +00:00
SetSync
This commit is contained in:
13
bin/esiur.cjs
Normal file
13
bin/esiur.cjs
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
console.log("Esiur Shell");
|
||||
console.log("\t use: 'await wh.get(url, <attributes>);' to get a resource.");
|
||||
|
||||
const { spawn } = require("child_process");
|
||||
const { pathToFileURL } = require("url");
|
||||
|
||||
let url = pathToFileURL(__dirname).href + '/../src/esiur.js';
|
||||
|
||||
spawn('node', ["-i", "-e", `import('${url}');`], {
|
||||
stdio: 'inherit'
|
||||
});
|
Reference in New Issue
Block a user