jsftpd
FTP server for nodejs in javascript
Install
Either download from here or install via npm.
$ npm install jsftpd
Quick start
To get an FTP server running quickly, the below code will get you started by allowing access for a single user.
const { ftpd } = require('jsftpd')
const server = new ftpd({cnf: {username: 'john', password: 'doe'})
server.on('log', console.log)
server.on('error', console.error)
server.start()
Documentation
The full documentation of the project is available here.
The ftpd instance takes an object with two properties that allows for configuring the new instance.
tls
property object. Takes any configuration option as per node.js tls.createServer optionscnf
property object. Takes jsftpd specific configuration items, like users authorized to login. See full documentation here