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 Feb 29, 2024 via pnpm

enquirer 0.4.1

Intuitive, plugin-based prompt system for node.js. Much faster and lighter alternative to Inquirer, with all the same prompt types and more, but without the bloat.
Package summary
Share
5
issues
1
critical severity
vulnerability
1
3
high severity
vulnerability
1
license
1
meta
1
1
low severity
license
1
3
licenses
115
MIT
2
ISC
1
Released under the MIT license.
Package created
21 Aug 2016
Version published
17 Oct 2016
Maintainers
2
Total deps
118
Direct deps
12
License
MIT

Issues

5

1 critical severity issue

critical
Recommendation: Upgrade to version 2.0.1 or later
via: prompt-base@0.5.2 & others
Collapse
Expand

3 high severity issues

high
Recommendation: Upgrade to version 2.0.1 or later
via: prompt-base@0.5.2 & others
Recommendation: Validate that the package complies with your license policy
via: prompt-base@0.5.2 & others
via: prompt-base@0.5.2 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: prompt-base@0.5.2 & others
Collapse
Expand

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
115 Packages, Including:
ansi-bgblack@0.1.1
ansi-bgblue@0.1.1
ansi-bgcyan@0.1.1
ansi-bggreen@0.1.1
ansi-bgmagenta@0.1.1
ansi-bgred@0.1.1
ansi-bgwhite@0.1.1
ansi-bgyellow@0.1.1
ansi-black@0.1.1
ansi-blue@0.1.1
ansi-bold@0.1.1
ansi-colors@0.2.0
ansi-cyan@0.1.1
ansi-dim@0.1.1
ansi-gray@0.1.1
ansi-green@0.1.1
ansi-grey@0.1.1
ansi-hidden@0.1.1
ansi-inverse@0.1.1
ansi-italic@0.1.1
ansi-magenta@0.1.1
ansi-red@0.1.1
ansi-regex@3.0.1
ansi-reset@0.1.1
ansi-strikethrough@0.1.1
ansi-underline@0.1.1
ansi-white@0.1.1
ansi-wrap@0.1.0
ansi-yellow@0.1.1
any-promise@0.1.0
arr-flatten@1.1.0
arr-union@3.1.0
assign-symbols@1.0.0
base@0.11.2
cache-base@1.0.1
choices-separator@0.1.2
class-utils@0.3.6
clone-deep@0.2.4
collection-visit@0.2.3
collection-visit@1.0.0
component-emitter@1.3.1
copy-descriptor@0.1.1
debug@2.6.9
define-property@0.2.5
define-property@1.0.0
enquirer@0.4.1
error-symbol@0.1.0
extend-shallow@2.0.1
extend-shallow@3.0.2
for-in@0.1.8

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
2 Packages, Including:
cli-width@2.2.1
mute-stream@0.0.7

Released under the MIT license.

Invalid
Not OSI Approved
1 Packages, Including:
toggle-array@0.1.0
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

12
All Dependencies CSV
β“˜ This is a list of enquirer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
choices-separator0.1.22.81 kBMIT
prod
clone-deep0.2.42.79 kBMIT
prod
collection-visit0.2.32.74 kBMIT
prod
component-emitter1.3.12.46 kBMIT
prod
debug2.6.916.13 kBMIT
prod
extend-shallow2.0.12.17 kBMIT
prod
isobject2.1.02.33 kBMIT
prod
lazy-cache2.0.24.45 kBMIT
prod
promise-reduce2.1.02.21 kBMIT
prod
prompt-base0.5.25.82 kBMIT
prod
1
3
1
prompt-question0.4.14.65 kBMIT
prod
1
3
1
readline-ui0.1.44.44 kBMIT
prod

Visualizations

Frequently Asked Questions

What does enquirer do?

Enquirer is a stylish, intuitive, and user-friendly prompt system for Node.js. It is designed to be fast and lightweight, making it suitable for small projects, while also being powerful and extensible, thus catering to the most advanced use cases. It offers a range of different prompts, including input prompts, list prompts, confirm prompts, and multiple select prompts among others, in a conversational style. Notably, enquirer places a strong emphasis on easy implementation, user experience, and customizability.

How do you use enquirer?

Using Enquirer is quite straightforward. After installing it through npm or yarn, you simply require the package in your project and use it to create prompts. Here are some examples:

const { prompt } = require('enquirer');

// Single prompt
const response = await prompt({
  type: 'input',
  name: 'username',
  message: 'What is your username?'
});

console.log(response); // { username: 'jonschlinkert' }

// Multiple prompts
const response = await prompt([
  {
    type: 'input',
    name: 'name',
    message: 'What is your name?'
  },
  {
    type: 'input',
    name: 'username',
    message: 'What is your username?'
  }
]);

console.log(response); // { name: 'Edward Chan', username: 'edwardmchan' }

// Confirm prompt
const { Confirm } = require('enquirer');

const prompt = new Confirm({
  name: 'question',
  message: 'Did you like enquirer?'
});

prompt.run()
  .then(answer => console.log('Answer:', answer));

The prompt() function can be used with a single question object or an array of question objects. This function returns a Promise that resolves to an answers object.

Where are the enquirer docs?

The documentation for Enquirer can be found in the project's GitHub repository. There you will find an extensive README file that includes a getting started guide, clear usage examples, and detailed descriptions of the various prompt options and features available. In particular, you can learn more about built-in prompts, custom prompts, key bindings, options, and more. Also, it is worth noting that the examples directory in the repository provides a number of example scripts that demonstrate various use-cases for Enquirer prompts.