panda-portfolio
Version:
A npm package for building single page personal websites for github.
24 lines (19 loc) • 923 B
JavaScript
//= =======================================================================================
/* *
* require node modules *
* */
//= =======================================================================================
const { NumberPrompt } = require('enquirer')
// ########################################################################################
// this the prompt which will ask for paras
const prompt = new NumberPrompt({
name: 'noOFParagraphs',
message: 'Please enter the number of paragraphs you would like to add to your website'
})
module.exports = {
askNoOfParas: () => {
return prompt.run()
.then(answer => answer)
.catch(console.error)
}
}