Files
smartantivirus/ts/plugins.ts
T

34 lines
618 B
TypeScript
Raw Normal View History

// Node.js built-in modules
2025-01-10 03:09:32 +01:00
import * as fs from 'fs';
import * as path from 'path';
import { exec, spawn } from 'child_process';
import { promisify } from 'util';
import { EventEmitter } from 'events';
import net from 'net';
import * as http from 'http';
import * as https from 'https';
2025-01-10 03:09:32 +01:00
export {
fs,
path,
exec,
spawn,
promisify,
EventEmitter,
net,
http,
https,
};
2025-01-10 03:09:32 +01:00
// @push.rocks scope
import * as smartpath from '@push.rocks/smartpath';
import * as smartstream from '@push.rocks/smartstream';
2025-01-10 03:09:32 +01:00
export {
smartpath,
smartstream,
};
2025-01-10 03:09:32 +01:00
// Common utilities
export const execAsync = promisify(exec);