load-from-directory
Loads all nodejs modules from the given directory into an array
Usage
Filetree:
- index.js
- test_directory/
- test.js
test.js:
moduleexports = 'test_string_in_file'
index.js:
var load_from_directory = ;var loaded = load_from_directory;console;
Output:
"test": "test_string_in_file"