beaugunderson / ip-address

💻 a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript
http://ip-address.js.org/
MIT License
580 stars 73 forks source link

IP representation of subnet mask #96

Open drahnieR opened 4 years ago

drahnieR commented 4 years ago

Hi,

I'm in a scenario that needs the IP representation of subnet mask. Since the awesome ip-address doesn't have that yet, I just submitted a PR #95 for the idea.

This is only for v4 though, v6 will need some understanding of how jsbn works.

Comments welcomed!