Most coderunner-supported languages allow you to run bash commands. For example, in a Python3 question you could submit an answer like
import subprocess subprocess.run('npm ls', shell=True)
However, the default Jobe install does not include npm - just a bare-bones nodejs. So you will need to install it first on your Jobe server before adding jsdom.