Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const colors = require('ansi-colors');
const { Editable } = require('enquirer');
const prompt = new Editable({
name: 'user',
message: 'Please provide the following information:',
promptLine: false,
align: false,
choices: [
{
name: 'author',
role: 'heading',
message: colors.underline.bold('Author information'),
async indicator() {
return prompt.style(await prompt.prefix());
},
choices: [
{
name: 'firstname',
message: 'First Name',
'use strict';
const { Editable } = require('enquirer');
const prompt = new Editable({
name: 'user',
message: 'Please provide the following information:',
choices: [
{
name: 'firstname',
message: 'First Name',
initial: 'Jon',
editable: true
},
{
name: 'lastname',
message: 'Last Name',
initial: 'Schlinkert',
editable: true
},
{
'use strict';
const { Editable } = require('enquirer');
const prompt = new Editable({
name: 'user',
message: 'Please provide the following information:',
choices: [
{
name: 'firstname',
message: 'First Name',
initial: 'Jon',
editable: true
},
{
name: 'lastname',
message: 'Last Name',
initial: 'Schlinkert',
editable: true
}
]