2025-02-03 13:34:52 +01:00
|
|
|
// Node.js built-in modules
|
2025-01-10 03:09:32 +01:00
|
|
|
import * as fs from 'fs';
|
|
|
|
import * as path from 'path';
|
2025-02-03 13:34:52 +01:00
|
|
|
import { exec, spawn } from 'child_process';
|
|
|
|
import { promisify } from 'util';
|
|
|
|
import { EventEmitter } from 'events';
|
|
|
|
import net from 'net';
|
2025-02-05 10:49:46 +01:00
|
|
|
import * as http from 'http';
|
|
|
|
import * as https from 'https';
|
2025-01-10 03:09:32 +01:00
|
|
|
|
|
|
|
export {
|
|
|
|
fs,
|
|
|
|
path,
|
2025-02-03 13:34:52 +01:00
|
|
|
exec,
|
|
|
|
spawn,
|
|
|
|
promisify,
|
|
|
|
EventEmitter,
|
2025-02-05 10:49:46 +01:00
|
|
|
net,
|
|
|
|
http,
|
|
|
|
https
|
2025-02-03 13:34:52 +01:00
|
|
|
};
|
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';
|
2025-02-05 10:49:46 +01:00
|
|
|
import * as smartstream from '@push.rocks/smartstream';
|
2025-01-10 03:09:32 +01:00
|
|
|
|
|
|
|
export {
|
|
|
|
smartpath,
|
|
|
|
smartfile,
|
2025-02-05 10:49:46 +01:00
|
|
|
smartstream,
|
2025-02-03 13:34:52 +01:00
|
|
|
};
|
2025-01-10 03:09:32 +01:00
|
|
|
|
2025-02-03 13:34:52 +01:00
|
|
|
// Third party scope
|
2025-01-10 03:09:32 +01:00
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
export {
|
2025-02-03 13:34:52 +01:00
|
|
|
axios
|
|
|
|
};
|
|
|
|
|
|
|
|
// Common utilities
|
|
|
|
export const execAsync = promisify(exec);
|