New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sync-prompt

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-prompt - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3-beta

2

HISTORY.md

@@ -5,4 +5,6 @@ # History

- Just like v0.3.1, there's absolutely no bug fixes. Just some marketing fluff update.
- v0.3.1
- a version bump from v0.3.0 to v0.3.1. There are absolutely no bug fixes in this one. I was simply not able to publish to v0.3.0, because I was too eager to publish to v0.3.0, but not actually wanting to publish it. But now, it seems NPM does not allow us to [overrite changes to a particular version](https://github.com/npm/npm-registry-couchapp/issues/148).
- v0.3.0

@@ -9,0 +11,0 @@ - added a `prompt.hidden` method

6

lib/sync-prompt.js

@@ -19,2 +19,3 @@ 'use strict';

process.on('exit', onExit);
process.on('unhandledException', onExit);

@@ -27,3 +28,4 @@ module.exports.prompt = prompt;

if (typeof question == "string") { process.stdout.write(question); }
return h ? hidden() : _syncPrompt.prompt();
var retval = h ? hidden() : _syncPrompt.prompt();
return retval;
}

@@ -40,5 +42,5 @@

_syncPrompt.setStdinEcho(true);
// Emergy clean-up not necessary, so set to false.
// Emergency clean-up not necessary, so set to false.
echoHidden = false;
return value;
}

@@ -18,3 +18,3 @@ {

],
"version": "0.3.2",
"version": "0.3.3-beta",
"author": {

@@ -21,0 +21,0 @@ "name": "Salehen Shovon Rahman",

@@ -7,3 +7,3 @@ # sync-prompt

You know how the browser has the `prompt` function that *actually* returns what the user entered, and not just require that you grab the value via a callback? Welp, Node.js doesn't have one, until now! Just like in the browser, call `prompt` and you should be able to prompt users via the command line!
You know how the browser has the `prompt` function that *actually* returns what the user entered, and not just require that you grab the value via a callback? Welp, Node.js doesn't have one, until now! Just like in the browser, call `prompt` and you should be able to prompt users via the command line! No callback hell!

@@ -47,2 +47,4 @@ ## Usage

**Please consider avoiding the use of `.prompt('some qustion', true)` for hiding what the user types. Instead, consider using the more descriptive, and--what many would argue--self-documenting `.prompt.hidden('some question')`. The former is deprecated, and will be removed in a future release. The latter makes more sense when you want to implement hidden prompts :).**
When set to true, none of the user's input will be written to the console. This is great for passwords.

@@ -49,0 +51,0 @@

Sorry, the diff of this file is not supported yet

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