securityos/node_modules/wasi-js/dist/bindings/node.js

24 lines
742 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_1 = require("crypto");
const fs_1 = __importDefault(require("fs"));
const tty_1 = require("tty");
const path_1 = __importDefault(require("path"));
const bindings = {
hrtime: process.hrtime.bigint,
exit: (code) => {
process.exit(code);
},
kill: (signal) => {
process.kill(process.pid, signal);
},
randomFillSync: crypto_1.randomFillSync,
isTTY: tty_1.isatty,
fs: fs_1.default,
path: path_1.default,
};
exports.default = bindings;
//# sourceMappingURL=node.js.map