MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / writeWorkbookBase

Function writeWorkbookBase

js/botasaurus-js/src/output.ts:436–447  ·  view source on GitHub ↗
(filename:string, exec:(x:any)=>void)

Source from the content-addressed store, hash-verified

434}
435
436async function writeWorkbookBase(filename:string, exec:(x:any)=>void) {
437 const workbook = new ExcelJS.stream.xlsx.WorkbookWriter({
438 filename: filename,
439});
440 const worksheet = workbook.addWorksheet('Sheet1');
441
442 exec(worksheet)
443
444 await workbook.commit();
445
446 return filename
447}
448
449async function writeWorkbook(data: any[], filename: string){
450 return writeWorkbookBase(filename, (worksheet:any) =>{

Callers 1

writeWorkbookFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected