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

russian-roulette

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

russian-roulette - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

25

bin/russian-roulette.js
#! /usr/bin/env node
const { promisify } = require("util");
const rimraf = require("rimraf");
import { promisify } from "node:util";
import rimraf from "rimraf";
const rimrafAsync = promisify(rimraf);
async function main() {
const random = Math.floor(Math.random() * 7);
const random = Math.floor(Math.random() * 7);
if (random === 0) {
await rimrafAsync("*");
console.log("*BANG*");
} else {
console.log("*Click*");
}
if (random === 0) {
await rimrafAsync("*");
console.log("*BANG*");
} else {
console.log("*Click*");
}
if (require.main === module) {
main().catch(error => {
console.error(error);
process.exit(1);
});
}

@@ -6,3 +6,3 @@ {

"name": "russian-roulette",
"version": "2.0.0",
"version": "3.0.0",
"description": "Russian roulette on your command line",

@@ -14,3 +14,3 @@ "repository": {

"engines": {
"node": ">8"
"node": ">14"
},

@@ -26,2 +26,3 @@ "keywords": [

},
"type": "module",
"homepage": "https://github.com/peterjuras/russian-roulette#readme",

@@ -28,0 +29,0 @@ "dependencies": {

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