node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org ยป


//client var FileTransClient = require('transfile').FileTransClient; var client = new FileTransClient({}); client.on('open', function() { //send file to server client.sendFile(clientPath, serverPath); //send dir to server client.sendDir(clientPath, serverPath); //get file from server client.transFile(clientPath, serverPath); //get dir from server client.transDir(clientPath, serverPath); }

//server var FileTransServer = require('transfile').FileTransServer; new FileTransServer({});