style: update input prompt
This commit is contained in:
parent
b8900381d6
commit
fa41e17011
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
|
@ -1,7 +1,8 @@
|
||||||
import { input } from "@inquirer/prompts";
|
import { input } from "@inquirer/prompts";
|
||||||
|
|
||||||
const answer = await input({
|
const answer = await input({
|
||||||
message: "Enter an array of numbers or strings separated by commas:",
|
message:
|
||||||
|
"Enter an array of numbers or strings (or both!) separated by commas:",
|
||||||
});
|
});
|
||||||
|
|
||||||
const array = answer.split(",").map((item) => {
|
const array = answer.split(",").map((item) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue