1.0.7 • Published 4 years ago

hackmud-script-manager-cli v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 example foo.bar.js will create a file named bar.js only for the user foo.

  • 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 and foo.bar.js to be synced, bar.js will be synced to all users apart from the user foo which will have foo.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
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago