I am wondering if there is a Node.js equivalent to importing client side code without them having to be a module, an equivalent to Rhino's load()
:
load('to-title-case.min.js');
load('to-title-case-tests.js');
print(titleCase); // A string from to-title-case-tests.js
Is there a simple way of doing this with Node (either build-in or a available module) or do I have to do it with node-jsdom?
Thanks.