access all files in folder in nodejs <p>is library versioning is supported in nodeJS?</p> <p>i have folder like package/version/1.0/ and files under this path test1.js test2.js</p> <pre><code> script.js //access the folder package of version 1.1 var lib = require('require-all')(__dirname + '/package/version/1.0'); test1.js ======== function sum() { a+b ;} exports.sum = sum; test2.js ======== function sub() { a-b ;} exports.sub = sub; </code></pre> <p>in script.js file, can require the package/version/1.1 folder. but how can i access the function sum() and sub() in my script file? and is library versioning supported in nodeJS? is the above code is a sort of library versioning ?</p>