loretoparisi / fasttext.js

FastText for Node.js
MIT License
192 stars 28 forks source link

DeprecationWarning: Buffer() is deprecated due to security and usability issues when i move my script to another server #21

Closed loretoparisi closed 5 years ago

loretoparisi commented 5 years ago

Replace new Buffer(data,encoding) with Buffer.from(data,encoding)