Question: how to copy a file from one folder to another in node js?
Answer: // include fs-extra package. var fs = require( "fs-extra"); var source = 'folderA' var destination = 'folderB' // copy source folder to destination. fs. copy( source, destination, function ( err) { if ( err){ console. log( 'An error occured while copying the folder. ')