---
title: "Nirmal Sankalana (@nirmalsankalana) | Hashnode"
description: "Nirmal Sankalana (@nirmalsankalana) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@nirmalsankalana"
---

@nirmalsankalana

# Nirmal Sankalana

@nirmalsankalana · Sri Lanka · Joined July 2021

[Website](https://nirmalsankalana.github.io/)

### [A Comprehensive Guide to Using doT.js](https://nirmalsankalana.hashnode.dev/a-comprehensive-guide-to-using-dotjs?utm_source=hashnode&utm_medium=feed)

Learn to use doT.js, a minimalistic and fast JavaScript templating engine for Node.js and browsers. Includes installation, syntax, and examples

4 min read · [nirmalsankalana.hashnode.dev](https://nirmalsankalana.hashnode.dev/a-comprehensive-guide-to-using-dotjs?utm_source=hashnode&utm_medium=feed)

[Sep 29, 2024](https://hashnode.com/posts/a-comprehensive-guide-to-using-dotjs/66f8f2f24b154c3abdf9b55b)

### [JavaScript and Node.js Naming Conventions](https://nirmalsankalana.hashnode.dev/javascript-and-nodejs-naming-conventions?utm_source=hashnode&utm_medium=feed)

Discover essential naming conventions in JavaScript and Node.js for clean, understandable, and error-free code

3 min read · [nirmalsankalana.hashnode.dev](https://nirmalsankalana.hashnode.dev/javascript-and-nodejs-naming-conventions?utm_source=hashnode&utm_medium=feed)

[Sep 8, 2024](https://hashnode.com/posts/javascript-and-nodejs-naming-conventions/66ddaa73991803d1359a1820)

### [How to Use .env with ES6 Modules](https://nirmalsankalana.hashnode.dev/how-to-use-env-with-es6-modules?utm_source=hashnode&utm_medium=feed)

Learn how to configure and use \`.env\` with ES6 modules in Node.js applications to manage environment variables efficiently

4 min read · [nirmalsankalana.hashnode.dev](https://nirmalsankalana.hashnode.dev/how-to-use-env-with-es6-modules?utm_source=hashnode&utm_medium=feed)

[Sep 8, 2024](https://hashnode.com/posts/how-to-use-env-with-es6-modules/66dd75c83d1895bac7071af8)

### [Understanding CJS and ESM Imports and Exports](https://nirmalsankalana.hashnode.dev/understanding-cjs-and-esm-imports-and-exports?utm_source=hashnode&utm_medium=feed)

Understand the differences between CommonJS (CJS) and ECMAScript Modules (ESM) in JavaScript, their uses, and best practices

5 min read · [nirmalsankalana.hashnode.dev](https://nirmalsankalana.hashnode.dev/understanding-cjs-and-esm-imports-and-exports?utm_source=hashnode&utm_medium=feed)

[Aug 11, 2024](https://hashnode.com/posts/understanding-cjs-and-esm-imports-and-exports/66b884a35ef9361df930a3bd)

### [Setting Up MongoDB Replicas Locally](https://nirmalsankalana.hashnode.dev/setting-up-mongodb-replicas-locally?utm_source=hashnode&utm_medium=feed)

Learn how to set up a MongoDB replica on a single Linux server for development and testing purposes

3 min read · [nirmalsankalana.hashnode.dev](https://nirmalsankalana.hashnode.dev/setting-up-mongodb-replicas-locally?utm_source=hashnode&utm_medium=feed)

[Jul 3, 2024](https://hashnode.com/posts/setting-up-mongodb-replicas-locally/668556de662b444c366ee9a0)
