How to have configure _moduleAliases in Express js (Node JS)

  • If we want any node package? To configure module aliases in package.json.

I need to proper coding related to node path.

For example:-

var file = "../module/filePath.js";

var file2 = "../module/filePath2.js"

Need to have

var file = "@module/filePath"

var file2 = "@module/filePath2"