Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prompts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompts - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

lib/prompt.js

@@ -26,4 +26,4 @@ 'use strict';

// skip questins of type null
if (prompt.type === null) continue;
// skip if type is a falsy value
if (!prompt.type) continue;

@@ -30,0 +30,0 @@ if (!types.hasOwnProperty(prompt.type)) {

{
"name": "prompts",
"version": "0.1.1",
"version": "0.1.2",
"description": "Lightweight, beautiful and user-friendly prompts",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/terkelg/prompts",

@@ -52,3 +52,3 @@ <p align="center">

let response = await prompts({
const response = await prompts({
type: 'number',

@@ -59,3 +59,3 @@ name: 'value',

console.log(response.value); // => 23
console.log(response); // => { value: 23 }
```

@@ -100,3 +100,3 @@

{
type: 'age',
type: 'number',
name: 'age',

@@ -103,0 +103,0 @@ message: 'How old are you?'

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