Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

network-address

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

network-address - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

index.js
var os = require('os');
var networkAddress = function() {
module.exports = function() {
var interfaces = os.networkInterfaces();

@@ -12,6 +12,2 @@ for (var i in interfaces) {

return '127.0.0.1';
};
module.exports = function(port) {
return port ? networkAddress()+':'+port : networkAddress();
};

2

package.json
{
"name":"network-address",
"version":"0.0.2",
"version":"0.0.3",
"dependencies": {},

@@ -5,0 +5,0 @@ "repository": "git://github.com/mafintosh/network-address",

@@ -13,3 +13,8 @@ ## network-address

console.log(address()); // prints something like 192.168.3.102
console.log(address(2444)) // prints something like 192.168.3.102:2444
```
it is also available as a command line tool
npm install -g network-address
you are now able to run `network-address` in your terminal
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc