UNPKG

@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.

19 lines (18 loc) 497 B
export type ModulePathInfo = { /** * Name of the module, including the scope if it exists. */ name: string; /** * Absolute path to the package inside node_modules. */ base: string; /** * Relative path to required file inside the package folder. */ path: string; }; /** * Get the module name and dir from a path that is inside a node_modules folder. */ export declare function getModuleInfoFromPath(path: string): ModulePathInfo | undefined;