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
.js
files.Files with more than 1
.
will only be synced to a specific user, for examplefoo.bar.js
will create a file namedbar.js
only for the userfoo
.A file named
bin.js
will 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.js
andfoo.bar.js
to be synced,bar.js
will be synced to all users apart from the userfoo
which will havefoo.bar.js
instead.
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 unnecessary
The 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