catppuccin/samples/javascript/0.js

29 lines
551 B
JavaScript
Raw Normal View History

2022-03-24 01:28:15 +00:00
const Generator = require("yeoman-generator")
const chalk = require('chalk')
const yosay = require("yosay")
module.exports = class extends Generator {
prompting() {
// have yeoman greet the user
this.log(chalk.red("Let\'s do this"))
const prompts = [{
message: 'Enter the excercise title',
worker: true,
action: null,
age: 123
}];
return this.prompt(prompts).then(props => {
// you can access them later
this.props = props
})
}
}
function exclamate(message) {
return message + "!"
}
console.log(exclamate("lol"))