⚡ An FTP/FTPS/SFTP client with modern API.
Qusly-Core is a powerful multi-protocol library for file transfer. Created for Qusly.
import { Client } from 'qusly-core';
async function main() {
const client = new Client({ pool: 2 });
await client.connect({
protocol: 'ftp',
host: 'www.example.com',
user: 'root',
password: 'password',
});
// It will handle all methods at once.
const [documents, videos] = await Promise.all([
client.list('/documents'),
client.list('/videos'),
]);
console.log(document, videos);
await client.disconnect();
}
main();
$ npm install qusly-core
We use ssh2 and basic-ftp under the hood.
Certain protocols such as ftp
don't support handling many request at the same time. When app calls API many times from many places, handling manually these cases is very hard - you can't use await
in the most cases.
What if you want to use many connections to speed up transfering files?
That's where we come in. This library supports it all thanks to the powerful task manager.
Allows you to: