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.

9 lines (8 loc) 395 B
/** * Escape characters with special meaning either inside or outside character sets. * * Use a simple backslash escape when it’s always valid, and a `\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar. * * Taken from https://github.com/sindresorhus/escape-string-regexp/ */ export declare function escapeStringRegexp(string: string): string;