Create a Node.js project

Initialize the demo-csv-writer project

For this example, we are creating a Node.js application.

You can use any language/framework you like in place of Javascript.

The only prerequisite needed to build this application is an updated Node.js. The demo application has been developed on Node version 14.x. However, any recent version (>= 8.x) should work.

We will develop the application as an ES6 module.

  • Open a new terminal in VSCode
  • Run npm init and accept all the defaults

If you do not have Node.js installed, the command npm init will fail. Please install Node.js to proceed.

If you need instruction, click here.

  • open your VSCode (or any other editor/IDE) on the newly created folder
  • open and modify the package.json in the following way
    "name": "demo-csv-writer",
    "version": "1.0.0",
    "description": "",
    "main": "index.mjs",
    "type": "module",
    "scripts": {
        "start": "node index.mjs"
    "author": "",
    "license": "ISC"
  • in a terminal in your project folder, run
npm install
  • create a index.mjs file containing
console.log("up and running");
  • in a terminal in your project folder, run
npm start

You should see the following output

$ npm start

> demo-csv-writer@1.0.0 start <your project path>
> node index.mjs

up and running

The initial project for demo-csv-writer has been successfully created.