lumphe / ftp-ts

FTP-ts is an FTP client module for node that provides an asynchronous interface for communicating with a FTP server.
MIT License
9 stars 5 forks source link

FIXED: use Buffer.from(string) instead of deprecated Buffer(string) #4

Closed warpdesign closed 5 years ago

warpdesign commented 5 years ago

Node.js 10 emits a warning when Buffer(string) is called from code outside node_modules.

This is a Stability 0 API which means:

Stability: 0 - Deprecated. The feature may emit warnings. Backward compatibility is not guaranteed.

See: https://nodejs.org/api/buffer.html#buffer_new_buffer_string_encoding