An open API service indexing awesome lists of open source software.

https://github.com/codemonument/deno_sftp_client

An sftp client class, wrapping the `sftp` cli
https://github.com/codemonument/deno_sftp_client

Last synced: about 1 month ago
JSON representation

An sftp client class, wrapping the `sftp` cli

Awesome Lists containing this project

README

          

# sftp-client

**CAUTION**
This project is highly experimental and doesn't work at all right now.
I have a newer version coded in rust, which is not open source yet because some confidential things have to be removed from the repo before publishing.
You can add an issue / upvote issues if you're interested in this newer version.

---

# Changelog

## 0.5.1 - 2024-10-23

- fixed handling of failure output for cd

## 0.5.0 - 2024-10-23

- add `logMode: "normal" | "verbose" | "silent" | "only-unknown";` property to SfptClientOptions to allow completely disabling logging or setting it to different modes (default: "normal")
only-unknown mode: only output logs for output messages from sftp-cli which are not captured by the SftpClient class and interpreted differently
- rewrite sftp output matching to use ts-pattern
=> for more explicit matching than
splitting the output line on the space character and switching over the first element
which for some outputs may not be enought to dissambiguate or is not convenient
- add completely new `inProgress` infrastructure for dealing with pending commands
=> first ones: 'pwd' and 'cd'
=> the promise returned by these two commands now successfully resolves or rejects with the output of the command or at least when the command was finished sucessfully

## 0.4.0 - 2024-10-22

- add SftpClient.help() command
- add SftpClient.pwd() command which returns the pwd to the caller
- upgrade @codemonument/puppet-process to 1.0.1 (removes annoying debug log)

## 0.3.0 - 2024-10-22

- switch from execa to jsr:@codemonument/puppet-process for easier subprocess handling

## 0.2.0 - 2024-10-18

- improve docs for jsr

## 0.1.0 - 2024-10-18

**Initial release**

- extracted from another project and adapted to deno authoring and publishing on jsr
- Intention: make it comaptible with bun also by not using deno specifics, but only nodejs basics and npm dependencies, as well as deno @std dependencies, which are also available in nodejs
(not tested yet)