This ftpd is simple ftpd which operates on node.js.
Please be created supposing using it for the test use of the system which has a ftp function, and keep in mind that it is unsuitable for employment in production environment.
$ npm install baby-ftpd
BabyFtpd = require "baby-ftpd"
ftpd = new BabyFtpd
ftpd.addUser "test", "test"
ftpd.fileSystem.setBase "/var/ftp"
ftpd.listen 21, "localhost"
If you want to try error simulation mode, please use
ftpd.fileSystem.setQuotaSize [Max File Size(bytes)]
It will become an error if a larger file than the specified size is uploaded.