v0.0.1
Copycat of ruby's sshkit gem for deno
Repository
Current version released
3 years ago
Dependencies
deno.land/x
Versions
deno-sshkit
A copycat of ruby’s sshkit DSL for deno. Allows to run commands on remote servers with typescript.
Requirements
This module uses unstable API spawnSync so it requires --unstable
flag.
Example
import { on } from "https://deno.land/x/deno_sshkit/mod.ts";
on("example.com", ({ execute, test }) => {
if (test("[ -f somefile.txt ]") {
execute("rm -rf somefile.txt");
}
const files = execute("ls -l");
console.log(files);
});