Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
cross-platform-sock
Advanced tools
Create unix sockets on both unix systems and windows
npm install cross-platform-sock
On unix it'll just use a unix socket and on windows it'll return a pipe name.
const xsock = require('cross-platform-sock')
const net = require('net')
const server = net.createServer(function (socket) {
socket.end('hello unix socket')
})
const sock = xsock('./test.sock')
xsock.unlink(sock, function () {
server.listen(sock, function () {
const socket = net.connect(sock)
socket.on('data', function (data) {
console.log('data:', data)
})
})
})
Running the above should print
data: hello unix socket
On all systems.
sock = xsock(name)
Create a cross platform socket name.
xsock.unlink(sock, cb)
Unlink a previous socket. Only needed on unix systems. On windows this is just a noop.
MIT
FAQs
Create a unix sockets on both unix and windows
The npm package cross-platform-sock receives a total of 729 weekly downloads. As such, cross-platform-sock popularity was classified as not popular.
We found that cross-platform-sock 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.