smartantivirus/ts/plugins.ts

39 lines
670 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';
2025-01-10 03:09:32 +01:00
export {
fs,
path,
exec,
spawn,
promisify,
EventEmitter,
net
};
2025-01-10 03:09:32 +01:00
// @push.rocks scope
import * as smartpath from '@push.rocks/smartpath';
import * as smartfile from '@push.rocks/smartfile';
import { expect, tap } from '@push.rocks/tapbundle';
2025-01-10 03:09:32 +01:00
export {
smartpath,
smartfile,
expect,
tap
};
2025-01-10 03:09:32 +01:00
// Third party scope
2025-01-10 03:09:32 +01:00
import axios from 'axios';
export {
axios
};
// Common utilities
export const execAsync = promisify(exec);