![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
sftp-backup-upload
Advanced tools
Upload a local folder to the server through sftp, and back up the corresponding folder on the server before uploading.
A simple Node.js library to upload local directories to a remote server using SFTP. It also supports backing up and clearing the remote directory before upload.
You can install this library via npm:
npm install sftp-backup-upload
To use the SFTP Upload Client, first create an instance of the client and configure it with your SSH server details.
const SftpUploadClient = require('sftp-backup-upload');
const client = new SftpUploadClient();
client.config({
host: 'your.sftp.server',
port: 22,
username: 'your_username',
password: 'your_password'
});
You can upload a local directory to a remote directory using the upload method.
client.upload('./local/directory', '/remote/directory')
.then(() => {
console.log('Upload completed successfully');
})
.catch(err => {
console.error('Upload failed:', err);
});
Here's a complete example:
const SftpUploadClient = require('sftp-backup-upload');
const client = new SftpUploadClient();
client.config({
host: '127.0.0.1',
port: 22,
username: 'root',
password: 'root'
});
client.upload('./dist', '/home/dist')
.then(() => {
console.log('Upload completed successfully');
})
.catch(err => {
console.error('Upload failed:', err);
});
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
FAQs
Upload a local folder to the server through sftp, and back up the corresponding folder on the server before uploading.
The npm package sftp-backup-upload receives a total of 1 weekly downloads. As such, sftp-backup-upload popularity was classified as not popular.
We found that sftp-backup-upload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.