Socket
Socket
Sign inDemoInstall

hexip

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hexip

translates hex formatted ip addresses to long and dot decimal


Version published
Weekly downloads
2K
decreased by-36.85%
Maintainers
1
Install size
113 kB
Created
Weekly downloads
 

Readme

Source

hexip

translates hex formatted ip addresses to long and dot decimal

this is the format that the linux kernel stores in /proc/net/tcp for example and is probably used in tons of other places


var hexip = require('hexip');

hexip("4433320A") === "10.50.51.68";

hexip.long("4433320A") === 171062084;

hexip.hex(171062084) === "4433320A";

hexip.hex("10.50.51.68") === "4433320A";

Keywords

FAQs

Last updated on 13 Jan 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc