russian-roulette
Advanced tools
Comparing version 2.0.0 to 3.0.0
#! /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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
2273
11