I defined many functions in a file called util.js, and I will take the function encode as an example. when using, it should be like this:
var util = require('./util.js');
util.encode();
but I want to use encode directly,just like using it in PHP or Python:
include "util.php"
encode();
Is there any way to achieve in NodeJS? Thanks.