🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cli-confirm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-confirm - npm Package Compare versions

Comparing version

to
1.0.1

6

index.js

@@ -13,7 +13,7 @@ #!/usr/bin/env node

console.log(`${chunk}`)
if (['y', 'n', 'c'].indexOf(chunk.toLowerCase())) {
if (chunk.toLowerCase() === 'y') {
process.exit(0)
} else {
process.exit(1)
} else {
process.exit(0)
}
})
{
"name": "cli-confirm",
"version": "1.0.0",
"version": "1.0.1",
"description": "Tiny module to confirm execution of npm scripts",
"main": "index.js",
"scripts": {
"test": "cli-confirm 'Are you sure?'"
"test": "cli-confirm \"Are you sure?\" && echo \"do it\""
},

@@ -9,0 +9,0 @@ "bin": {

@@ -14,3 +14,3 @@ # cli-confirm

"scripts" {
"self-destruct-servers": "cli-confirm 'Do you really want to blow up the servers?' && npm run destroy:servers",
"self-destruct-servers": "cli-confirm \"Do you really want to blow up the servers?\" && npm run destroy:servers",
}

@@ -17,0 +17,0 @@ […]