Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
You may install MOIRA via NPM as follows:
npm install moira
The source code is available on GitHub.
err
, ip
, service
))Retrieve your external IP address asynchronously by requesting it from several different IP-fetching services simultaneously. moira.getIP()
reports the quickest result after verifying that it is a valid IP address and terminating all other requests. err
is null if an IP address was found. ip
is an IPv4 address. service
is the URL of the IP-reporting service that returned ip
(e.g. http://whatismyip.akamai.com/).
Example:
var moira = require( 'moira' );
moira.getIP( function( err, ip, service ){
if( err ) throw err;
console.log( 'Your external IP address is ' + ip );
console.log( 'The fastest service to return your IP address was ' + service );
});
npm test
If you would like to contribute code or simply add an IP reporting service, feel free to submit a pull request. Please report issues here.
FAQs
Most Outstanding IP Reporting Assistant
We found that moira demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.