actionhero
Version:
The reusable, scalable, and quick node.js API server for stateless and stateful applications
59 lines (58 loc) • 2.84 kB
TypeScript
import { arrayStartingMatch } from "./utils/arrayStartingMatch";
import { arrayUnique } from "./utils/arrayUnique";
import { collapseObjectToArray } from "./utils/collapseObjectToArray";
import { deepCopy } from "./utils/deepCopy";
import { ensureNoTsHeaderOrSpecFiles } from "./utils/ensureNoTsHeaderOrSpecFiles";
import { eventLoopDelay } from "./utils/eventLoopDelay";
import { filterObjectForLogging } from "./utils/filterObjectForLogging";
import { filterResponseForLogging } from "./utils/filterResponseForLogging";
import { getExternalIPAddress } from "./utils/getExternalIPAddress";
import { hashMerge } from "./utils/hashMerge";
import { isPlainObject } from "./utils/isPlainObject";
import { parseHeadersForClientAddress } from "./utils/parseHeadersForClientAddress";
import { parseCookies } from "./utils/parseCookies";
import { parseIPv6URI } from "./utils/parseIPv6URI";
import { replaceDistWithSrc } from "./utils/replaceDistWithSrc";
import { sleep } from "./utils/sleep";
import { sortGlobalMiddleware } from "./utils/sortGlobalMiddleware";
import { sourceRelativeLinkPath } from "./utils/sourceRelativeLinkPath";
import { dirExists, fileExists, createDirSafely, createFileSafely, createLinkfileSafely, removeLinkfileSafely, createSymlinkSafely } from "./utils/fileUtils";
import { isRunning } from "./utils/isRunning";
import { safeGlobSync } from "./utils/safeGlob";
/**
* Utility functions for Actionhero
*/
export declare const utils: {
argv: {
[key: string]: string;
};
arrayStartingMatch: typeof arrayStartingMatch;
arrayUnique: typeof arrayUnique;
collapseObjectToArray: typeof collapseObjectToArray;
deepCopy: typeof deepCopy;
ensureNoTsHeaderOrSpecFiles: typeof ensureNoTsHeaderOrSpecFiles;
eventLoopDelay: typeof eventLoopDelay;
filterObjectForLogging: typeof filterObjectForLogging;
filterResponseForLogging: typeof filterResponseForLogging;
getExternalIPAddress: typeof getExternalIPAddress;
hashMerge: typeof hashMerge;
isPlainObject: typeof isPlainObject;
parseHeadersForClientAddress: typeof parseHeadersForClientAddress;
parseCookies: typeof parseCookies;
parseIPv6URI: typeof parseIPv6URI;
replaceDistWithSrc: typeof replaceDistWithSrc;
sleep: typeof sleep;
sortGlobalMiddleware: typeof sortGlobalMiddleware;
sourceRelativeLinkPath: typeof sourceRelativeLinkPath;
fileUtils: {
dirExists: typeof dirExists;
fileExists: typeof fileExists;
createDirSafely: typeof createDirSafely;
createFileSafely: typeof createFileSafely;
createLinkfileSafely: typeof createLinkfileSafely;
removeLinkfileSafely: typeof removeLinkfileSafely;
createSymlinkSafely: typeof createSymlinkSafely;
};
safeGlobSync: typeof safeGlobSync;
isRunning: typeof isRunning;
};