-
Notifications
You must be signed in to change notification settings - Fork 5
Modules
NOTE: Modules will be getting depreciated and replaced soon, despite not even being finished, due to the massive security issues they impose and better alternatives.
Modules are a way to temporarily add functionality to DremJS. Modules are installed using the insmod command on the terminal.
Modules are currently very experimental and not recommended at all. It is also not yet finished, as only one of three planned types of modules are currently implemented. They are also very insecure, so it is recommended to only use on local networks. This is because there is currently very little error detection, and DremJS pretty much just runs whatever is on the loaded file.
Currently, there is only one type of module and two more are planned.
Terminal type modules are modules that adds functionality to the terminal with a command. Currently, these modules are not persistent, and closing the terminal will discard these modules.
This type of module executes immediately. Not implemented yet.
This type of module adds functionality to DremJS's main JavaScript file. Not implimented yet.
Under construction.
Currently, you can only install remote files. However, this does not mean that you can't install modules that are on the web server DremJS is on (that's what the modules folder is for).
Example:
insmod remote http://192.168.x.x/modules/foo-0.0.0.djsm
This command will remove modules. However, it hasn't been implemented yet.
Making a module is easy - its just a few lines before your JavaScript code itself.
Terminal modules have two line before your code - one for type identification, and one for the new command name. Example:
type terminal;
name example;
Under construction.
Under construction.
© Innovation Inc. 2020
Any bugs you encounter should be reported at our Git Reports Page. Help is greatly appreciated! If you have an idea for something that should be added to DremJS, go to our issues page and give it an "enhancement" label. Thank you!