fx-gcli

Module for adding commands to Firefox's GCLI

Usage no npm install needed!

<script type="module">
  import fxGcli from 'https://cdn.skypack.dev/fx-gcli';
</script>

README

Firefox GCLI Build Status

NPM NPM

Module for adding commands to Firefox's GCLI.

Adding a command

require("fx-gcli").addCommand({
  "name": "test",
  "exec": function() {
    // stuff to do on execute
  }
})

Adding a command with "fx-gcli" will automatically unload/remove the command when your add-on is disabled/uninstalled.