Write a npm Node.js module that prints "Hello World"
Task Description
An npm module or Node.js module is a simple or complex functionality organized in single or multiple JavaScript files that can be reused throughout a Node.js application. You are actually going to write a JavaScript module that will help Node.js developers anywhere in the world.
So what you are required to do is write and publish a simple npm module that will print "Hello World" in the console.
Node.js Installation
First, download the Node.js, which is installable from Node.js Website the download and install the executable suitable for your machine OS.
Help: You can read the following articles to help you understand what you need to do:
- How to create and write an npm module using TypeScript by Chidume Nnamdi in Codeburst.
- How to build an publish an npm package by Akinjide Bankole in Scotch.io
- How to create and publish your first Node.js module
Task Submission.
Following through the above tutorials, you will create a Github repo of the npm module you built. When done upload the Github link for evaluation:
What are you waiting for? Make your own Node.js today!
Contact
Got a question, a problem or just want to talk? Please get in touch with us!
Of course, when you are done you will forever be in npmjs as a contributor to Open Source.