nl_tokens: ------------------------------------------------------------- Module . -------------------------------------------------------------
pl_tokens: function zip ( name , destination , source , files ) { if ( files && files . length > 0 ) { const filename = path . <mask> ( destination , name ) const output = fs . createWriteStream ( filename ) const archive = archiver ( 'zip' , { store : true } ) archive . on ( 'error' , ( err ) => { throw err } ) archive . pipe ( output ) files . forEach ( ( f ) => { archive . append ( fs . createReadStream ( path . join ( source , f ) ) , { name : f } ) } ) archive . finalize ( ) return filename } }