Atif Afzal
Home
Articles
Reading
Snippets
11 Sep, 2024
Using require in ESM Node.js
import { createRequire } from 'module' const require = createRequire(import.meta.url);