88 lines
3.1 KiB
TypeScript
88 lines
3.1 KiB
TypeScript
// Abstracted built-in Node.js Modules
|
|
|
|
//@ts-ignore
|
|
export const crypto = (
|
|
typeof window.cep !== "undefined" ? require("crypto") : {}
|
|
) as typeof import("crypto");
|
|
export const assert = (
|
|
typeof window.cep !== "undefined" ? require("assert") : {}
|
|
) as typeof import("assert");
|
|
export const buffer = (
|
|
typeof window.cep !== "undefined" ? require("buffer") : {}
|
|
) as typeof import("buffer");
|
|
export const child_process = (
|
|
typeof window.cep !== "undefined" ? require("child_process") : {}
|
|
) as typeof import("child_process");
|
|
export const cluster = (
|
|
typeof window.cep !== "undefined" ? require("cluster") : {}
|
|
) as typeof import("cluster");
|
|
export const dgram = (
|
|
typeof window.cep !== "undefined" ? require("dgram") : {}
|
|
) as typeof import("dgram");
|
|
export const dns = (
|
|
typeof window.cep !== "undefined" ? require("dns") : {}
|
|
) as typeof import("dns");
|
|
export const domain = (
|
|
typeof window.cep !== "undefined" ? require("domain") : {}
|
|
) as typeof import("domain");
|
|
export const events = (
|
|
typeof window.cep !== "undefined" ? require("events") : {}
|
|
) as typeof import("events");
|
|
export const fs = (
|
|
typeof window.cep !== "undefined" ? require("fs") : {}
|
|
) as typeof import("fs");
|
|
export const http = (
|
|
typeof window.cep !== "undefined" ? require("http") : {}
|
|
) as typeof import("http");
|
|
export const https = (
|
|
typeof window.cep !== "undefined" ? require("https") : {}
|
|
) as typeof import("https");
|
|
export const net = (
|
|
typeof window.cep !== "undefined" ? require("net") : {}
|
|
) as typeof import("net");
|
|
export const os = (
|
|
typeof window.cep !== "undefined" ? require("os") : {}
|
|
) as typeof import("os");
|
|
export const path = (
|
|
typeof window.cep !== "undefined" ? require("path") : {}
|
|
) as typeof import("path");
|
|
export const punycode = (
|
|
typeof window.cep !== "undefined" ? require("punycode") : {}
|
|
) as typeof import("punycode");
|
|
export const querystring = (
|
|
typeof window.cep !== "undefined" ? require("querystring") : {}
|
|
) as typeof import("querystring");
|
|
export const readline = (
|
|
typeof window.cep !== "undefined" ? require("readline") : {}
|
|
) as typeof import("readline");
|
|
export const stream = (
|
|
typeof window.cep !== "undefined" ? require("stream") : {}
|
|
) as typeof import("stream");
|
|
export const string_decoder = (
|
|
typeof window.cep !== "undefined" ? require("string_decoder") : {}
|
|
) as typeof import("string_decoder");
|
|
export const timers = (
|
|
typeof window.cep !== "undefined" ? require("timers") : {}
|
|
) as typeof import("timers");
|
|
export const tls = (
|
|
typeof window.cep !== "undefined" ? require("tls") : {}
|
|
) as typeof import("tls");
|
|
export const tty = (
|
|
typeof window.cep !== "undefined" ? require("tty") : {}
|
|
) as typeof import("tty");
|
|
export const url = (
|
|
typeof window.cep !== "undefined" ? require("url") : {}
|
|
) as typeof import("url");
|
|
export const util = (
|
|
typeof window.cep !== "undefined" ? require("util") : {}
|
|
) as typeof import("util");
|
|
export const v8 = (
|
|
typeof window.cep !== "undefined" ? require("v8") : {}
|
|
) as typeof import("v8");
|
|
export const vm = (
|
|
typeof window.cep !== "undefined" ? require("vm") : {}
|
|
) as typeof import("vm");
|
|
export const zlib = (
|
|
typeof window.cep !== "undefined" ? require("zlib") : {}
|
|
) as typeof import("zlib");
|