UNPKG

ip-restrictor

Version:

Easily allow or block internal IPs in Node.js and Express apps. A simple middleware for IP filtering and network security.

6 lines (4 loc) 133 B
const allowOnlyStandalone = (allowedIPs, ip) => { return allowedIPs.includes(ip); }; module.exports = allowOnlyStandalone;