2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-26 23:03:13 +00:00
This commit is contained in:
2022-08-27 00:37:58 +03:00
parent 93aeaee315
commit 4fcb5355bc
9 changed files with 87 additions and 18 deletions

13
bin/esiur.cjs Normal file
View 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'
});