frenchbread / private-ip

Check if IP address is private.
MIT License
33 stars 16 forks source link

fix: removed dependency in favor of Native node.js dependency #27

Open titanism opened 1 month ago

titanism commented 1 month ago

Instead of using @chainsafe/is-ip you can use the Node.js internal module node:net which offers isIP as an export.

This has been available since v0.3.0 at https://nodejs.org/api/net.html#netisipinput

Please merge and then update package-lock.json and release to npm.

Thank you 🙏