This is Greeting's program. For greetings, do console.log as following: console.log(Greeter('your name')). Added validation pipe support. For setting up validation pipe, use in app().. in app module as following: app.useGlobalPipes(setValidationPipe());