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.
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.
19 freelance font une offre moyenne de $127 pour ce travail
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 Plus
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
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.
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 Plus
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, Plus
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 Plus
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 Plus
I have been working on Nodejs for almost 3 years. I will try my best to finish the work as soon as possible.
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
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 Plus
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 Plus
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 Plus
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 Plus
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 Plus