patrickjuchli / basic-ftp

FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request]: connect & login using full ftp url

jimmywarting opened this issue · comments

It would have been nice to get rid of 4 variables and replace them with one url string

client.connect_n_login('ftp://user_name:password@hostname:21')
// or 
client = new Client('ftp://user_name:password@hostname:21')

URL constructor could be used to parse the url...

Keeping API as simple and stable for now.