Skip to content

0x0f42/ip2d

 
 

Repository files navigation

ip2d

All Contributors Known Vulnerabilities Build Status npm version

It's a simple lightweight zero cost library to convert an IP address to a decimal value and vice versa.

Usage

const {from_str, to_str} = require("ip2d");

console.log(from_str("127.0.0.1")); // --> 2130706433

console.log(to_str(2130706433)); // --> 127.0.0.1

Contributors

Thanks goes to these wonderful people (emoji key):

0xflotus
0xflotus

πŸ“– πŸ’» ⚠️ πŸ“† πŸš‡ 🚧 πŸ“¦ πŸ›‘οΈ

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Convert an IP to a decimal value

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%