Added node workspace.

This commit is contained in:
SamTV12345 2024-03-15 20:59:28 +01:00
parent 95d99424e1
commit 65046a3ff2
11 changed files with 29 additions and 27 deletions

View file

@ -7,10 +7,10 @@
// As of v14, Node.js does not exit when there is an unhandled Promise rejection. Convert an
// unhandled rejection into an uncaught exception, which does cause Node.js to exit.
import path from "path";
import path from "node:path";
import fs from "fs";
import process from "process";
import fs from "node:fs";
import process from "node:process";
import axios from "axios";
process.on('unhandledRejection', (err) => { throw err; });