Search code examples
javascriptnode.jstotal.js

Rename total.js to totaljs


Is there any problem if I change the name of total.js folder to totaljs, or I have to change some 'require' references?

Example: Rename Node_modules/total.js to node_modules/totaljs


Solution

  • I don't see any problem to rename it. It will work, but you have to change the reference in require() to totaljs.