mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

Snippets

All Tags

Astro Dynamic HTML Tag

Using a dynamic HTML tag in an Astro component.

Remove Extension from File Name in JavaScript

Remove the file extension from a filename string using RegExp.

Git Tag

Create, list or delete Git tags.

Create a Directory if It Does Not Exist in Node.js

Create a directory in Node.js if it does not exist.

Create a Directory if It Does Not Exist

Create a directory from the command line if it does not exist.