Can I use alias with NodeJS require function? January 14, 2023 by Tarik Sure, just use the object destructuring syntax: const { old_name: new_name, foo: f, bar: b } = require('module');