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.

13 lines (12 loc) 310 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeNodePrefix = removeNodePrefix; /** * Removes the "node:" prefix from the id of a builtin module. */ function removeNodePrefix(id) { if (id.startsWith("node:")) { return id.slice(5); } return id; }