
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
rock-paper-scissors-stream
Advanced tools
Streaming rock, paper scissors game
npm install -g rock-paper-scissors-stream
rock-paper-scissors-stream allows you to play rock, paper, scissors with a friend over any transport.
Using dupsh and airpaste this looks like
machine-1> dupsh 'rock-paper-scissors-stream rock' airpaste
and on another machine
machine-2> dupsh 'rock-paper-scissors-stream scissors' airpaste
This produces the following output
machine-1> dupsh 'rock-paper-scissors-stream rock' airpaste
You won! rock beats scissors
machine-2> dupsh 'rock-paper-scissors-stream scissors' airpaste
You lost! rock beats scissors
You can also use this as a module
var rps = require('rock-paper-scissors-stream')
var stream = rps('rock') // pass in your choice
stream.on('win', function (you, opponent) {
console.log('you won (%s vs %s)', you, opponent)
})
stream.on('lose', function (you, opponent) {
console.log('you lost (%s vs %s)', you, opponent)
})
stream.on('tie', function (you, opponent) {
console.log('you tied (%s vs %s)', you, opponent)
})
someTransport.pipe(stream).pipe(someTransport)
It works by creating an sha256 hmac with a random nounce as the key an your weapon choice as the data argument.
You then exchange this hmac with a friend and when both of you have received eachothers hmacs you expose your weapon and nounce allowing both parties to verify that you picked your weapon before knowing what your opponent choose.
MIT
FAQs
Streaming rock, paper scissors game
We found that rock-paper-scissors-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.