Socket
Socket
Sign inDemoInstall

promptly

Package Overview
Dependencies
4
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="3.0.1"></a>
## [3.0.1](https://github.com/moxystudio/node-promptly/compare/v3.0.0...v3.0.1) (2018-01-15)
<a name="3.0.0"></a>

@@ -7,0 +12,0 @@ # [3.0.0](https://github.com/moxystudio/node-promptly/compare/2.2.0...3.0.0) (2018-01-15)

4

package.json
{
"name": "promptly",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simple command line prompting utility",

@@ -26,3 +26,3 @@ "keywords": [

"lint": "eslint .",
"test": "jest --env node --coverage --runInBand",
"test": "jest --env node --coverage",
"prerelease": "npm t && npm run lint",

@@ -29,0 +29,0 @@ "release": "standard-version",

@@ -89,3 +89,3 @@ # promptly

try {
const name = promptly.prompt('Name: ', { validator, retry: false });
const name = await promptly.prompt('Name: ', { validator, retry: false });

@@ -147,3 +147,3 @@ console.log('Name is:', value);

```js
const choice = promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange']);
const choice = await promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange']);

@@ -165,3 +165,3 @@ console.log('Choice:', choice);

```js
const password = promptly.password('Type a password: ');
const password = await promptly.password('Type a password: ');

@@ -174,3 +174,3 @@ console.log('Password:', password);

```js
const password = promptly.password('Type a password: ', { replace: '*' });
const password = await promptly.password('Type a password: ', { replace: '*' });

@@ -177,0 +177,0 @@ console.log('Password:', password);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc