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 3.0.0 to 3.1.0

src/remove-everything-in-current-folder.js

7

bin/russian-roulette.js
#! /usr/bin/env node
import { promisify } from "node:util";
import rimraf from "rimraf";
import { removeEverythingInCurrentFolder } from "../src/remove-everything-in-current-folder.js";
const rimrafAsync = promisify(rimraf);
const random = Math.floor(Math.random() * 7);
if (random === 0) {
await rimrafAsync("*");
await removeEverythingInCurrentFolder();
console.log("*BANG*");

@@ -12,0 +9,0 @@ } else {

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

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

@@ -26,6 +26,3 @@ "repository": {

"type": "module",
"homepage": "https://github.com/peterjuras/russian-roulette#readme",
"dependencies": {
"rimraf": "^3.0.0"
}
"homepage": "https://github.com/peterjuras/russian-roulette#readme"
}
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