TensorFlow.js is an open-source hardware-accelerated JavaScript library for training and deploying machine learning models.
fs.writeFileSync(path.resolve(baseDir, fileName), buf)