• Stars
    star
    3
  • Rank 3,963,521 (Top 79 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Copycat of ruby's sshkit gem for deno

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);
});