How to use the keyInYNStrict function from readline-sync

Find comprehensive JavaScript readline-sync.keyInYNStrict code examples handpicked from public code repositorys.

111
112
113
114
115
116
117
118
119
120
  {
    prompt: '> The project begins in: '
  }
)

data.herokuValidator = readLineSync.keyInYNStrict(
  '> Will this project be deployed with Heroku? ',
  {
    caseSensitive: false
  }
fork icon3
star icon0
watch icon0

+ 15 other calls in file

230
231
232
233
234
235
236
237
238
239
    limit: [YEAR_REGEXP, ''],
    limitMessage: 'That is not a valid license year!',
    prompt: `> License year (${config.licenseYear}): `
  }
)
config.graphql = readLineSync.keyInYNStrict(
  '> Will this project use GraphQL? ',
  {
    caseSensitive: false
  }
fork icon0
star icon25
watch icon0

+ 7 other calls in file