Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 29, 2024 via pnpm

inquirer 8.2.4

A collection of common interactive command line user interfaces.
Package summary
Share
0
issues
6
licenses
44
MIT
4
ISC
1
BSD-3-Clause
3
other licenses
Apache-2.0
1
0BSD
1
(MIT OR CC0-1.0)
1
Package created
19 May 2013
Version published
28 Apr 2022
Maintainers
4
Total deps
52
Direct deps
15
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
44 Packages, Including:
ansi-escapes@4.3.2
ansi-regex@5.0.1
ansi-styles@4.3.0
base64-js@1.5.1
bl@4.1.0
buffer@5.7.1
chalk@4.1.2
chardet@0.7.0
cli-cursor@3.1.0
cli-spinners@2.9.2
clone@1.0.4
color-convert@2.0.1
color-name@1.1.4
defaults@1.0.4
emoji-regex@8.0.0
escape-string-regexp@1.0.5
external-editor@3.1.0
figures@3.2.0
has-flag@4.0.0
iconv-lite@0.4.24
inquirer@8.2.4
is-fullwidth-code-point@3.0.0
is-interactive@1.0.0
is-unicode-supported@0.1.0
lodash@4.17.21
log-symbols@4.1.0
mimic-fn@2.1.0
onetime@5.1.2
ora@5.4.1
os-tmpdir@1.0.2
readable-stream@3.6.2
restore-cursor@3.1.0
run-async@2.4.1
safe-buffer@5.2.1
safer-buffer@2.1.2
string-width@4.2.3
string_decoder@1.3.0
strip-ansi@6.0.1
supports-color@7.2.0
through@2.3.8
tmp@0.0.33
util-deprecate@1.0.2
wcwidth@1.0.1
wrap-ansi@7.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
cli-width@3.0.0
inherits@2.0.4
mute-stream@0.0.8
signal-exit@3.0.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ieee754@1.2.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
rxjs@7.8.1

BSD Zero Clause License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.21.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

15
All Dependencies CSV
β“˜ This is a list of inquirer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
ansi-escapes4.3.25.13 kBMIT
prod
chalk4.1.211.31 kBMIT
prod
cli-cursor3.1.02.08 kBMIT
prod
cli-width3.0.03.93 kBISC
prod
external-editor3.1.06.49 kBMIT
prod
figures3.2.04.19 kBMIT
prod
lodash4.17.21311.49 kBMIT
prod
mute-stream0.0.82.6 kBISC
prod
ora5.4.16.74 kBMIT
prod
run-async2.4.12.72 kBMIT
prod
rxjs7.8.1734.42 kBApache-2.0
prod
string-width4.2.32.33 kBMIT
prod
strip-ansi6.0.11.99 kBMIT
prod
through2.3.84.36 kBMIT
prod
wrap-ansi7.0.04.22 kBMIT
prod

Visualizations

Frequently Asked Questions

What does inquirer do?

Inquirer.js is a user-friendly JavaScript library designed to help developers create intuitive command line interfaces. The library simplifies the task of creating several different types of prompts, including input prompts, confirmation prompts, list prompts, checkbox prompts, password prompts, and more. It offers a high degree of customization to allow developers to create interfaces that best suit their application's needs. Inquirer.js can be used for validating user inputs, managing hierarchical prompts, and facilitating interactive sessions to keep users engaged and informed during the command execution process.

How do you use inquirer?

To utilize the Inquirer.js package, you first need to install it using npm with the command npm install --save inquirer. After installation, you can use it by importing Inquirer in your JavaScript file and using the inquirer.prompt() function to prompt users for input.

Here's a simple example:

import inquirer from 'inquirer';

const question = [{
  type: 'input',
  name: 'username',
  message: 'What\'s your username?',
}];

inquirer
  .prompt(question)
  .then(answer => {
    console.log(`Hello, ${answer.username}!`);
  })
  .catch(error => {
    console.error(error);
  });

In the example above, a user is asked to provide a username. After they enter their username, it is logged to the console with a friendly greeting.

Remember that Inquirer.js only supports ESM imports from version 9 and onwards. For older versions, you can use the CommonJS require syntax:

const inquirer = require('inquirer');

Also, Inquirer.js supports a reactive interface that allows for dynamic questions, through the inquirer.prompt() method that returns a promise with the answers given by the user.

Where are the inquirer docs?

The documentation for Inquirer.js can be found at the root of the GitHub repository (https://github.com/SBoudrias/Inquirer.js). It consists of a detailed readme file which contains information on installation, examples, environment support, different types of prompts, and more. Examples of using Inquirer.js can be found in the examples directory of the GitHub repository.