Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
basic-sftp
Advanced tools
Readme
🤹🏻♀️ A basic promise-based SFTP Client
npm i basic-sftp
ES Modules
import { Client } from 'basic-sftp';
CommonJS
const { Client } = require('basic-sftp');
const sftp = new Client();
await sftp.connect({
host: '',
port: 22,
username: '',
password: '',
});
ssh2
optionsawait sftp.reconnect();
await sftp.end();
Lists the contents of a directory
await sftp.ls(path);
Get the type from path: File | Directory | null
await sftp.is(path);
File
means that the remote path is a fileDirectory
means that the remote path is a directorynull
means that the remote path doesn't existCreates the path recursively, if it does not exist
await sftp.ensureDir(path);
Uploads a local file to the remote server
await sftp.uploadFile(localPath, remotePath);
Downloads a remote file to the local workspace
await sftp.downloadFile(remotePath, localPath);
Remove all files and directories from a directory, including the directory itself, if it exists
await sftp.unlink(path);
Brings up the original ssh2.sftp
methods
sftp.getConnection();
ls
is
ensureDir
unlink
uploadFile
downloadFile
uploadDir
downloadDir
Contributions | GitHub |
---|---|
Author |
FAQs
🤹🏻♀️ A basic promise-based SFTP Client
The npm package basic-sftp receives a total of 15 weekly downloads. As such, basic-sftp popularity was classified as not popular.
We found that basic-sftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.