@inquirer/input 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -1
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -14,6 +14,25 @@ Interactive free text input component for command line interfaces. Supports vali
|
|
|
14
14
|
<tr>
|
|
15
15
|
<td>
|
|
16
16
|
|
|
17
|
+
```sh
|
|
18
|
+
npm install @inquirer/prompts
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
</td>
|
|
22
|
+
<td>
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
yarn add @inquirer/prompts
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
</td>
|
|
29
|
+
</tr>
|
|
30
|
+
<tr>
|
|
31
|
+
<td colSpan="2" align="center">Or</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr>
|
|
34
|
+
<td>
|
|
35
|
+
|
|
17
36
|
```sh
|
|
18
37
|
npm install @inquirer/input
|
|
19
38
|
```
|
|
@@ -32,7 +51,9 @@ yarn add @inquirer/input
|
|
|
32
51
|
# Usage
|
|
33
52
|
|
|
34
53
|
```js
|
|
35
|
-
import input from '@inquirer/
|
|
54
|
+
import { input } from '@inquirer/prompts';
|
|
55
|
+
// Or
|
|
56
|
+
// import input from '@inquirer/input';
|
|
36
57
|
|
|
37
58
|
const answer = await input({ message: 'Enter your name' });
|
|
38
59
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/input",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Inquirer input text prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.ts",
|
|
@@ -54,17 +54,16 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/input/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^9.0.
|
|
58
|
-
"@inquirer/type": "^1.5.
|
|
57
|
+
"@inquirer/core": "^9.0.6",
|
|
58
|
+
"@inquirer/type": "^1.5.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@inquirer/testing": "^2.1.
|
|
61
|
+
"@inquirer/testing": "^2.1.29"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
65
65
|
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
|
|
66
66
|
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
|
|
67
|
-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
|
|
68
67
|
"attw": "attw --pack"
|
|
69
68
|
},
|
|
70
69
|
"publishConfig": {
|
|
@@ -86,5 +85,5 @@
|
|
|
86
85
|
}
|
|
87
86
|
},
|
|
88
87
|
"sideEffects": false,
|
|
89
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "7a061f13e053dd64ef7373b08e8a10130131ea59"
|
|
90
89
|
}
|