nikhilkalburgi / ftp-for-node

A basic Ftp and Explicit FTPS client and server for nodejs that helps to make the transfer of files easier.
https://www.npmjs.com/package/ftp-for-node
1 stars 0 forks source link

Improving the README #1

Open nikhilkalburgi opened 1 year ago

nikhilkalburgi commented 1 year ago

I want the readme to be improved

KunjShah95 commented 4 hours ago

FTP for Node.js

GitHub Issues License

A simple, efficient FTP client for Node.js that enables file transfers, management, and server interaction using the FTP protocol. This project aims to provide a straightforward way to connect, upload, download, and manage files on FTP servers.

🚀 Features

npm install ftp-for-node

🔧 Usage

Here's a quick example of how to use ftp-for-node:

const FTPClient = require('ftp-for-node');

// Initialize FTP client
const client = new FTPClient({
  host: 'ftp.example.com',
  port: 21,
  user: 'username',
  password: 'password',
});

// Connect to the FTP server
client.connect()
  .then(() => {
    // Upload a file
    return client.upload('/local/path/to/file.txt', '/remote/path/file.txt');
  })
  .then(() => {
    console.log('File uploaded successfully!');
    // Download a file
    return client.download('/remote/path/file.txt', '/local/path/to/download/file.txt');
  })
  .then(() => {
    console.log('File downloaded successfully!');
    client.disconnect(); // Close the connection
  })
  .catch((err) => {
    console.error('FTP Error:', err);
  });

Available Methods


📖 Documentation

For a full list of available methods and advanced usage, please check out the API Documentation.


🤝 Contributing

We welcome contributions! Please check out our Contribution Guidelines for more information.

How to Contribute:

  1. Fork the repo.
  2. Create a new branch: git checkout -b feature-branch
  3. Make your changes.
  4. Commit your changes: git commit -m 'Add some feature'
  5. Push to the branch: git push origin feature-branch
  6. Open a Pull Request.

🐛 Issues

Have a bug or an issue? Please check out the issues page or open a new issue with a detailed description of the problem.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


💬 Support

If you need help, feel free to reach out or open an issue.

Happy coding!