Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
address_util
Advanced tools
npm install address_util --save
In your node program:
let addressUtil = require('address_util')
// get current machine local address
const currentIp = addressUtil.getCurrentIp() // example: 192.168.1.2
// get new port to listen
addressUtil.findPortToListen(8080, port => {
// if 8080 is not occupied , port > 8080
// else other port which is not occupied
})
// have not default port, find from 8080
addressUtil.findPortToListen(port => {})
// promise
addressUtil.findPortToListen(8080).then(port => {})
addressUtil.findPortToListen().then(port => {})
// get client real request ip
const http = require('http')
const server = http.createServer((req, res) => {
// real ip
const realClientIp = addressUtil.getClientIp(req)
res.end(realClientIp)
})
MIT. Copyright (c) SoberZ.
FAQs
ip util package
The npm package address_util receives a total of 4 weekly downloads. As such, address_util popularity was classified as not popular.
We found that address_util 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.