Socket
Socket
Sign inDemoInstall

@inquirer/prompts

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/prompts - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

dist/commonjs/index.d.ts

89

package.json
{
"name": "@inquirer/prompts",
"version": "6.0.1",
"version": "7.0.0",
"description": "Inquirer prompts, combined in a single package",
"main": "./dist/cjs/index.js",
"typings": "./dist/cjs/types/index.d.ts",
"files": [
"dist/**/*"
],
"repository": {
"type": "git",
"url": "https://github.com/SBoudrias/Inquirer.js.git"
},
"keywords": [

@@ -55,43 +46,65 @@ "answer",

],
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/prompts/README.md",
"repository": {
"type": "git",
"url": "https://github.com/SBoudrias/Inquirer.js.git"
},
"license": "MIT",
"author": "Simon Boudrias <admin@simonboudrias.com>",
"license": "MIT",
"scripts": {
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"attw": "attw --pack"
},
"engines": {
"node": ">=18"
},
"sideEffects": false,
"type": "module",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/types/index.d.mts",
"default": "./dist/esm/index.mjs"
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/types/index.d.ts",
"default": "./dist/cjs/index.js"
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"files": [
"dist"
],
"scripts": {
"attw": "attw --pack",
"tsc": "tshy"
},
"dependencies": {
"@inquirer/checkbox": "^3.0.1",
"@inquirer/confirm": "^4.0.1",
"@inquirer/editor": "^3.0.1",
"@inquirer/expand": "^3.0.1",
"@inquirer/input": "^3.0.1",
"@inquirer/number": "^2.0.1",
"@inquirer/password": "^3.0.1",
"@inquirer/rawlist": "^3.0.1",
"@inquirer/search": "^2.0.1",
"@inquirer/select": "^3.0.1"
"@inquirer/checkbox": "^4.0.0",
"@inquirer/confirm": "^5.0.0",
"@inquirer/editor": "^4.0.0",
"@inquirer/expand": "^4.0.0",
"@inquirer/input": "^4.0.0",
"@inquirer/number": "^3.0.0",
"@inquirer/password": "^4.0.0",
"@inquirer/rawlist": "^4.0.0",
"@inquirer/search": "^3.0.0",
"@inquirer/select": "^4.0.0"
},
"devDependencies": {
"@inquirer/type": "^2.0.0"
"@arethetypeswrong/cli": "^0.16.4",
"@inquirer/type": "^3.0.0",
"@repo/tsconfig": "workspace:*",
"tshy": "^3.0.2"
},
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/prompts/README.md",
"sideEffects": false,
"gitHead": "9e29035c2efc78f44aed3c7732aee46ab1d64ca2"
"engines": {
"node": ">=18"
},
"tshy": {
"exclude": [
"src/**/*.test.ts"
],
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"gitHead": "483189975eb5ea7d214c265a5ce108544c2bf1a5"
}

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

## Using with nodemon
When using inquirer prompts with nodemon, you need to pass the `--no-stdin` flag for everything to work as expected.
```sh
npx nodemon ./packages/demo/demos/password.mjs --no-stdin
```
Note that for most of you, you'll be able to use the new watch-mode built-in Node. This mode works out of the box with inquirer.
```sh
# One of depending on your need
node --watch script.js
node --watch-path=packages/ packages/demo/
```
## Wait for config

@@ -300,0 +316,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