def CheckNodeJSPackage(package):
    """ Check whether a node.js package is installed """
    cmd = package % "node -e \"var d3=require('%s');\""
    x = RunCommand(cmd)
    return x == 0
dataset/ETHPy150Open mgymrek/pybamview/pybamview/utils.py/CheckNodeJSPackage/swapped operands of `%`