UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

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; }