Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ip-subnet-calculator with all npm packages installed. Try it out:

var ipsc = require( 'ip-subnet-calculator' ); console.log( 'Is "127.0.0.1" an IP?', ipsc.isIp( '127.0.0.1' ) ); console.log( 'What is numeric representation of "127.0.0.1"?', ipsc.toDecimal( '127.0.0.1' ) ); console.log( 'Mask for 5.4.3.21-6.7.8.9', ipsc.calculate( '5.4.3.21', '6.7.8.9' ) );

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ip-subnet-calculator v1.1.8

Calculate optimal subnet masks for standard and non-standard IP ranges

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free