@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
8 lines (7 loc) • 334 B
TypeScript
export type PackageLoadFormat = "commonjs" | "module" | "unambiguous";
type SourceType = "unambiguous" | "ts" | "cjs" | "mjs" | "tsx" | "jsx";
/**
* Get the source type based on the file extension and package load format.
*/
export declare function getSourceType(path: string, loadFormat: PackageLoadFormat): SourceType;
export {};