0 points

single line file copy


dashboard

Mon Jun 08 2020 10:15:25 GMT+0000 (UTC)

Posted by @salitha.pathi #nodejs #fs #javascript

var fs = require('fs');

fs.createReadStream('test.log').pipe(fs.createWriteStream('newLog.log'));
content_copy Copy

https://lavalite.org/blog/fastest-method-to-copy-file-in-nodejs