hackmud-script-manager-cli v1.0.7
hackmud script manager
Adds a command called hsm.
Installation
Requires NodeJS to be installed.
Install package with npm i hackmud-script-manager-cli -g.
Features
- Sync script in a directory with multiple users at once
 - Automatically minify scripts in the process
 - Simplified script format
 
Notes
Syncing
Files to be synced must be
.jsfiles.Files with more than 1
.will only be synced to a specific user, for examplefoo.bar.jswill create a file namedbar.jsonly for the userfoo.A file named
bin.jswill be synced to all users (unless otherwise stated in args).Files with the user defined in the name will take priority, for example if there are 2 files
bar.jsandfoo.bar.jsto be synced,bar.jswill be synced to all users apart from the userfoowhich will havefoo.bar.jsinstead.
Optional script format
Surrounding function
You can leave out the function structure that surrounds your code.
function (context, args) { // this line is unnecessary
// code here
} // this line is also unnecessaryThe surrounding function structure is added in as the script is minified.
Subscripts
Because most editors hate hackmud's specific syntax, replace # and . characters with $ characters it will be changed back as the script is minified.
#fs.scripts.trust() <->  $fs$scripts$trust()
#db.f() <-> $db$f()
Planned features
- Importing normal hackmud scripts to simplified format
 - Running scripts in emumud