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

inquirer

Package Overview
Dependencies
Maintainers
4
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inquirer - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

8

package.json
{
"name": "inquirer",
"type": "module",
"version": "9.0.0",
"version": "9.0.1",
"description": "A collection of common interactive command line user interfaces.",

@@ -50,5 +50,5 @@ "author": "Simon Boudrias <admin@simonboudrias.com>",

"mute-stream": "0.0.8",
"ora": "^6.1.0",
"ora": "^6.1.2",
"run-async": "^2.4.0",
"rxjs": "^7.5.5",
"rxjs": "^7.5.6",
"string-width": "^5.1.2",

@@ -59,3 +59,3 @@ "strip-ansi": "^7.0.1",

},
"gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74"
"gitHead": "1d5e7e3d15c86851f2e5df2bb9f55084ba231c54"
}

@@ -54,7 +54,8 @@ <img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/SBoudrias/Inquirer.js/master/assets/inquirer_readme.svg?sanitize=true" title="Inquirer.js"/>

```shell
npm install inquirer
npm install --save inquirer
```
```javascript
var inquirer = require('inquirer');
import inquirer from 'inquirer';
inquirer

@@ -76,2 +77,14 @@ .prompt([

Inquirer v9 and higher are native esm modules, this mean you cannot use the commonjs syntax `require('inquirer')` anymore. If you want to learn more about using native esm in Node, I'd recommend reading [the following guide](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). Alternatively, you can rely on an older version until you're ready to upgrade your environment:
```sh
npm install --save inquirer@^8.0.0
```
This will then allow import inquirer with the commonjs `require`:
```js
const inquirer = require('inquirer');
```
<a name="examples"></a>

@@ -113,3 +126,3 @@

```js
var prompt = inquirer.createPromptModule();
const prompt = inquirer.createPromptModule();

@@ -157,3 +170,3 @@ prompt(questions).then(/* ... */);

// Declare function as asynchronous, and save the done callback
var done = this.async();
const done = this.async();

@@ -315,3 +328,3 @@ // Do async stuff

```javascript
var ui = new inquirer.ui.BottomBar();
const ui = new inquirer.ui.BottomBar();

@@ -339,3 +352,3 @@ // pipe a Stream to the log zone

```js
var prompts = new Rx.Subject();
const prompts = new Rx.Subject();
inquirer.prompt(prompts);

@@ -342,0 +355,0 @@

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