Node script to dynamically load modules

I need an node script which can dynamically load modules from a modules folder. That means if a new module is added to the modules folder, and the node script is restarted, it will automatically import and use the module.

The node script needs to be able to pass a dictionary to the module. The module needs to be able to return a dictionary to the node script. (This will be a common interface for every module - receive a dictionary, return a dictionary).

Let me give an example so you clearly understand my meaning:

In /home/scripts is main.js. This simple script contains a dictionary.

A module called [login to view URL] is added to /home/scripts/modules.

When [login to view URL] is restarted:

- it automatically loads [login to view URL]

- it passes the dictionary to [login to view URL]

- [login to view URL] does something with this dictionary

- [login to view URL] returns the dictionary to [login to view URL]

There are two things to keep in mind here:

1. There might be many modules in /home/scripts/modules. [login to view URL] should process them one by one, rather than concurrently.

2. If a module has a problem (e.g. syntax error), it should not crash main.js.

Any questions, just ask. Thanks.

Skills: Javascript, node.js

See more: dynamic-module-loader, node require, node dynamic require, node dynamic import, node js dynamically load script, npm dynamic load, node cannot find module, node dynamic export, javascript dynamically load flv, google maps dynamically load markers, dynamically load jpeg files flash template, toobplayer dynamically load, creating template dynamically load flash files, dynamically load listbox listbox, image rotation java script page load, dynamically load photos flash, dynamically load flv flvplayer, ajax dynamically load select, dynamically load flv, dynamically load flvs flv player

About the Employer:
( 21 reviews ) Hong Kong, Macau

Project ID: #17819508

Awarded to:


Hi. I can make it using built-in Node.js ”fs" module. Relevant Skills and Experience I have an experience with Node.js and Node.js built-in modules.

$55 USD in 3 days
(0 Reviews)

19 freelancers are bidding on average $127 for this job


Dear man I read your project description so I think I can do your project. I am a developer who developed some node js website like this. [login to view URL] Please award me so that we can start our project righ More

$155 USD in 3 days
(8 Reviews)

hello. i am very interested in your post project. As you can see my profile, i am node js expert. so i am sure i can give you good result in time please call me Dmitrii. looking forward your reply. best regards

$155 USD in 3 days
(18 Reviews)

Hi There, I have got your requirement except the script will do something, let’s discuss and I can start immediately. I am Sr. Software Engineer having more than 4.5 years of experienced in JavaScript, NodeJS, Express More

$112 USD in 1 day
(22 Reviews)

Hi Nice to meet you. I would like to have a conversation with you about your project. I saw your project description. I am confident to finish your assignment. I want to have good results. thanks.

$140 USD in 3 days
(4 Reviews)

Dear,sir! I already read your proposal and understood your idea. I'm interested in your project. I've ever done some project like that. I can do it effectively and perfectly. I'd like to work with you. Please se More

$155 USD in 3 days
(3 Reviews)

Hello Sir. Thanks for offering this project. I have read all requirements about your project in detail. I am nodejs expert and For node, i have no problem at all. All techniques is perfect for me. Please hire me, More

$166 USD in 3 days
(5 Reviews)

Hi, The dictionary passed from [login to view URL] to modules, will that be passed as function argument or a constructor argument? for ex: [login to view URL](dict) or new Script1(dict). PM me if you wish to talk about details and of More

$100 USD in 1 day
(3 Reviews)

Well, looks like a pretty easy task as I've written node.js scripts to auto import all the modules from another module. Main thing of concern would be exception handling, if not defined properly. Relevant Skills and E More

$93 USD in 1 day
(3 Reviews)

I have checked your job post and I am sure this is my job. I have rich experiences in javascript, node js, react.js, redux and react native, angular js. I can deliver high quality product in timeline. Let's discuss More

$138 USD in 3 days
(2 Reviews)

I have been working on Nodejs for almost 3 years. I will try my best to finish the work as soon as possible.

$66 USD in 2 days
(1 Review)

Hey, It's a simple task for me, don't waste your time to find other candidates. I'm MEAN Stack expert, over 5 years of experience. Waiting for your response. Best, R. Keyan

$100 USD in 2 days
(3 Reviews)

Hello...! Greetings! I have seen your post and I am very interested to serve you. We are the team of experienced team and developers who provides solutions and services that help enterprises rapidly launch new m More

$166 USD in 3 days
(0 Reviews)

I have 3 years industry experience in node js.

$111 USD in 3 days
(0 Reviews)

Hi, Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have got Rich experience in Jooml More

$208 USD in 7 days
(0 Reviews)

I would be happy to work on this node script for you. I have many years of experience with Javscript and node.js, having built many web apps with it. I can provide a demo if required and I can quickly deliver the p More

$100 USD in 2 days
(0 Reviews)

Hello, nice to meet you I hope you contact me . thans w -----------Node.js--------------- [login to view URL] [login to view URL] [login to view URL] ----------AngularJS----- More

$155 USD in 3 days
(0 Reviews)

Hello! There are some interesting details about what you have asked for... The first is to dynamically load the modules... One should be careful not to simply use "require", once Node.JS will cache the source of t More

$88 USD in 3 days
(0 Reviews)

Dear Hiring Manager! I am a UI (Front End Developer) with: Proficient understanding of web markup, including HTML5, CSS3 Basic understanding of server-side CSS pre-processing platforms, such as LESS and SASS Profi More

$155 USD in 3 days
(0 Reviews)