UNPKG

rdtool

Version:

A simple Node.js-based remote deployment tool that makes deployments easier with config files.

11 lines (9 loc) 271 B
const { execServerCommand } = require("../tools"); async function exec(client, config, port) { const res = await execServerCommand(client, `netstat -tuln | grep ${port}`); return Boolean(res) } module.exports = { name: "remote-hasPort", exec }