[{"data":1,"prerenderedAt":1391},["ShallowReactive",2],{"navigation_docs_en":3,"-en-xlsx-export":288,"-en-xlsx-export-surround":1386},[4,23,57,87,163,240],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F03.ai-integration",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[29,33,37,41,45,49,53],{"title":30,"path":31,"stem":32},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":34,"path":35,"stem":36},"XML Components","\u002Fen\u002Fcore\u002Fxml-components","en\u002F02.core\u002F02.xml-components",{"title":38,"path":39,"stem":40},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":42,"path":43,"stem":44},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":46,"path":47,"stem":48},"Formatter","\u002Fen\u002Fcore\u002Fformatter","en\u002F02.core\u002F05.formatter",{"title":50,"path":51,"stem":52},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F06.charts",{"title":54,"path":55,"stem":56},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F07.parser",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":22},"XML","i-lucide-code-xml","\u002Fen\u002Fxml","en\u002F03.xml",[63,67,71,75,79,83],{"title":64,"path":65,"stem":66},"@office-open\u002Fxml","\u002Fen\u002Fxml\u002Foverview","en\u002F03.xml\u002F01.overview",{"title":68,"path":69,"stem":70},"Parsing","\u002Fen\u002Fxml\u002Fparsing","en\u002F03.xml\u002F02.parsing",{"title":72,"path":73,"stem":74},"Serialization","\u002Fen\u002Fxml\u002Fserialization","en\u002F03.xml\u002F03.serialization",{"title":76,"path":77,"stem":78},"Query Utilities","\u002Fen\u002Fxml\u002Fquery-utilities","en\u002F03.xml\u002F04.query-utilities",{"title":80,"path":81,"stem":82},"XML Escape","\u002Fen\u002Fxml\u002Fescape","en\u002F03.xml\u002F05.escape",{"title":84,"path":85,"stem":86},"Type Reference","\u002Fen\u002Fxml\u002Ftypes","en\u002F03.xml\u002F06.types",{"title":88,"icon":89,"path":90,"stem":91,"children":92,"page":22},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[93,97,101,105,109,113,116,120,124,128,132,136,140,144,148,152,156,159],{"title":94,"path":95,"stem":96},"@office-open\u002Fdocx","\u002Fen\u002Fdocx\u002Foverview","en\u002F04.docx\u002F01.overview",{"title":98,"path":99,"stem":100},"Quick Start","\u002Fen\u002Fdocx\u002Fquickstart","en\u002F04.docx\u002F02.quickstart",{"title":102,"path":103,"stem":104},"Text and Paragraphs","\u002Fen\u002Fdocx\u002Ftext-and-paragraphs","en\u002F04.docx\u002F03.text-and-paragraphs",{"title":106,"path":107,"stem":108},"Tables","\u002Fen\u002Fdocx\u002Ftables","en\u002F04.docx\u002F04.tables",{"title":110,"path":111,"stem":112},"Images","\u002Fen\u002Fdocx\u002Fimages","en\u002F04.docx\u002F05.images",{"title":50,"path":114,"stem":115},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F06.charts",{"title":117,"path":118,"stem":119},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F07.smartart",{"title":121,"path":122,"stem":123},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F08.media",{"title":125,"path":126,"stem":127},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F09.links",{"title":129,"path":130,"stem":131},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F10.headers-and-footers",{"title":133,"path":134,"stem":135},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F11.equations-and-symbols",{"title":137,"path":138,"stem":139},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F12.styles-and-themes",{"title":141,"path":142,"stem":143},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F13.page-layout",{"title":145,"path":146,"stem":147},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F14.references",{"title":149,"path":150,"stem":151},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F15.comments-and-revisions",{"title":153,"path":154,"stem":155},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F16.export",{"title":68,"path":157,"stem":158},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F17.parsing",{"title":160,"path":161,"stem":162},"Patching","\u002Fen\u002Fdocx\u002Fpatch","en\u002F04.docx\u002F18.patch",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":22},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[169,173,176,180,183,186,189,192,195,198,202,205,208,212,215,219,223,227,231,234,237],{"title":170,"path":171,"stem":172},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":98,"path":174,"stem":175},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":177,"path":178,"stem":179},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":106,"path":181,"stem":182},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":110,"path":184,"stem":185},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":50,"path":187,"stem":188},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":117,"path":190,"stem":191},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":121,"path":193,"stem":194},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":125,"path":196,"stem":197},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":199,"path":200,"stem":201},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F10.lines-and-connectors",{"title":129,"path":203,"stem":204},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F11.headers-and-footers",{"title":133,"path":206,"stem":207},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F12.equations-and-symbols",{"title":209,"path":210,"stem":211},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F13.slide-layout",{"title":137,"path":213,"stem":214},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F14.styles-and-themes",{"title":216,"path":217,"stem":218},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F15.effects-and-fills",{"title":220,"path":221,"stem":222},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":224,"path":225,"stem":226},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":228,"path":229,"stem":230},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F18.comments",{"title":153,"path":232,"stem":233},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F19.export",{"title":68,"path":235,"stem":236},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F20.parsing",{"title":160,"path":238,"stem":239},"\u002Fen\u002Fpptx\u002Fpatch","en\u002F05.pptx\u002F21.patch",{"title":241,"icon":242,"path":243,"stem":244,"children":245,"page":22},"XLSX","i-lucide-table-2","\u002Fen\u002Fxlsx","en\u002F06.xlsx",[246,250,253,257,261,265,269,272,275,279,282,285],{"title":247,"path":248,"stem":249},"@office-open\u002Fxlsx","\u002Fen\u002Fxlsx\u002Foverview","en\u002F06.xlsx\u002F01.overview",{"title":98,"path":251,"stem":252},"\u002Fen\u002Fxlsx\u002Fquickstart","en\u002F06.xlsx\u002F02.quickstart",{"title":254,"path":255,"stem":256},"Cells & Data","\u002Fen\u002Fxlsx\u002Fcells","en\u002F06.xlsx\u002F03.cells",{"title":258,"path":259,"stem":260},"Styles","\u002Fen\u002Fxlsx\u002Fstyles","en\u002F06.xlsx\u002F04.styles",{"title":262,"path":263,"stem":264},"Merge, Columns & Rows","\u002Fen\u002Fxlsx\u002Fmerge-col-row","en\u002F06.xlsx\u002F05.merge-col-row",{"title":266,"path":267,"stem":268},"Freeze Panes & Auto Filter","\u002Fen\u002Fxlsx\u002Ffreeze-filter","en\u002F06.xlsx\u002F06.freeze-filter",{"title":110,"path":270,"stem":271},"\u002Fen\u002Fxlsx\u002Fimages","en\u002F06.xlsx\u002F07.images",{"title":50,"path":273,"stem":274},"\u002Fen\u002Fxlsx\u002Fcharts","en\u002F06.xlsx\u002F08.charts",{"title":276,"path":277,"stem":278},"Data Validation","\u002Fen\u002Fxlsx\u002Fvalidation","en\u002F06.xlsx\u002F09.validation",{"title":153,"path":280,"stem":281},"\u002Fen\u002Fxlsx\u002Fexport","en\u002F06.xlsx\u002F10.export",{"title":68,"path":283,"stem":284},"\u002Fen\u002Fxlsx\u002Fparsing","en\u002F06.xlsx\u002F11.parsing",{"title":160,"path":286,"stem":287},"\u002Fen\u002Fxlsx\u002Fpatch","en\u002F06.xlsx\u002F12.patch",{"id":289,"title":153,"body":290,"description":1380,"extension":1381,"links":1382,"meta":1383,"navigation":407,"path":280,"seo":1384,"stem":281,"__hash__":1385},"docs_en\u002Fen\u002F06.xlsx\u002F10.export.md",{"type":291,"value":292,"toc":1369},"minimark",[293,321,324,328,335,521,524,530,718,722,725,813,817,825,883,887,894,952,956,959,1017,1021,1027,1134,1137,1144,1173,1177,1365],[294,295,296,297,301,302,305,306,309,310,313,314,309,317,320],"p",{},"The ",[298,299,300],"code",{},"Packer"," class converts a ",[298,303,304],{},"Workbook"," into various output formats. Every async method (",[298,307,308],{},"toBuffer",", ",[298,311,312],{},"toBlob",", etc.) has a synchronous counterpart (",[298,315,316],{},"toBufferSync",[298,318,319],{},"toBlobSync",", etc.).",[294,322,323],{},"Async methods use Web Workers for non-blocking ZIP compression; sync methods block the main thread but avoid Worker overhead.",[325,326,308],"h2",{"id":327},"tobuffer",[294,329,330,331,334],{},"Returns a ",[298,332,333],{},"Buffer",". Best for Node.js file I\u002FO.",[336,337,342],"pre",{"className":338,"code":339,"language":340,"meta":341,"style":341},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Packer } from \"@office-open\u002Fxlsx\";\nimport { writeFileSync } from \"node:fs\";\n\n\u002F\u002F Async (non-blocking, uses Web Workers)\nconst buffer = await Packer.toBuffer(wb);\nwriteFileSync(\"output.xlsx\", buffer);\n\n\u002F\u002F Sync (blocking, no Worker overhead)\nconst buffer2 = Packer.toBufferSync(wb);\nwriteFileSync(\"output-sync.xlsx\", buffer2);\n","ts","",[298,343,344,379,402,409,416,445,469,474,480,500],{"__ignoreMap":341},[345,346,349,353,357,361,364,367,370,373,376],"span",{"class":347,"line":348},"line",1,[345,350,352],{"class":351},"s7zQu","import",[345,354,356],{"class":355},"sMK4o"," {",[345,358,360],{"class":359},"sTEyZ"," Packer",[345,362,363],{"class":355}," }",[345,365,366],{"class":351}," from",[345,368,369],{"class":355}," \"",[345,371,247],{"class":372},"sfazB",[345,374,375],{"class":355},"\"",[345,377,378],{"class":355},";\n",[345,380,382,384,386,389,391,393,395,398,400],{"class":347,"line":381},2,[345,383,352],{"class":351},[345,385,356],{"class":355},[345,387,388],{"class":359}," writeFileSync",[345,390,363],{"class":355},[345,392,366],{"class":351},[345,394,369],{"class":355},[345,396,397],{"class":372},"node:fs",[345,399,375],{"class":355},[345,401,378],{"class":355},[345,403,405],{"class":347,"line":404},3,[345,406,408],{"emptyLinePlaceholder":407},true,"\n",[345,410,412],{"class":347,"line":411},4,[345,413,415],{"class":414},"sHwdD","\u002F\u002F Async (non-blocking, uses Web Workers)\n",[345,417,419,423,426,429,432,434,437,440,443],{"class":347,"line":418},5,[345,420,422],{"class":421},"spNyl","const",[345,424,425],{"class":359}," buffer ",[345,427,428],{"class":355},"=",[345,430,431],{"class":351}," await",[345,433,360],{"class":359},[345,435,436],{"class":355},".",[345,438,308],{"class":439},"s2Zo4",[345,441,442],{"class":359},"(wb)",[345,444,378],{"class":355},[345,446,448,451,454,456,459,461,464,467],{"class":347,"line":447},6,[345,449,450],{"class":439},"writeFileSync",[345,452,453],{"class":359},"(",[345,455,375],{"class":355},[345,457,458],{"class":372},"output.xlsx",[345,460,375],{"class":355},[345,462,463],{"class":355},",",[345,465,466],{"class":359}," buffer)",[345,468,378],{"class":355},[345,470,472],{"class":347,"line":471},7,[345,473,408],{"emptyLinePlaceholder":407},[345,475,477],{"class":347,"line":476},8,[345,478,479],{"class":414},"\u002F\u002F Sync (blocking, no Worker overhead)\n",[345,481,483,485,488,490,492,494,496,498],{"class":347,"line":482},9,[345,484,422],{"class":421},[345,486,487],{"class":359}," buffer2 ",[345,489,428],{"class":355},[345,491,360],{"class":359},[345,493,436],{"class":355},[345,495,316],{"class":439},[345,497,442],{"class":359},[345,499,378],{"class":355},[345,501,503,505,507,509,512,514,516,519],{"class":347,"line":502},10,[345,504,450],{"class":439},[345,506,453],{"class":359},[345,508,375],{"class":355},[345,510,511],{"class":372},"output-sync.xlsx",[345,513,375],{"class":355},[345,515,463],{"class":355},[345,517,518],{"class":359}," buffer2)",[345,520,378],{"class":355},[325,522,312],{"id":523},"toblob",[294,525,330,526,529],{},[298,527,528],{},"Blob",". Best for browser environments.",[336,531,533],{"className":338,"code":532,"language":340,"meta":341,"style":341},"\u002F\u002F Async\nconst blob = await Packer.toBlob(wb);\n\n\u002F\u002F Sync\nconst blob2 = Packer.toBlobSync(wb);\n\n\u002F\u002F Trigger download\nconst url = URL.createObjectURL(blob);\nconst a = document.createElement(\"a\");\na.href = url;\na.download = \"output.xlsx\";\na.click();\nURL.revokeObjectURL(url);\n",[298,534,535,540,561,565,570,589,593,598,620,651,667,687,702],{"__ignoreMap":341},[345,536,537],{"class":347,"line":348},[345,538,539],{"class":414},"\u002F\u002F Async\n",[345,541,542,544,547,549,551,553,555,557,559],{"class":347,"line":381},[345,543,422],{"class":421},[345,545,546],{"class":359}," blob ",[345,548,428],{"class":355},[345,550,431],{"class":351},[345,552,360],{"class":359},[345,554,436],{"class":355},[345,556,312],{"class":439},[345,558,442],{"class":359},[345,560,378],{"class":355},[345,562,563],{"class":347,"line":404},[345,564,408],{"emptyLinePlaceholder":407},[345,566,567],{"class":347,"line":411},[345,568,569],{"class":414},"\u002F\u002F Sync\n",[345,571,572,574,577,579,581,583,585,587],{"class":347,"line":418},[345,573,422],{"class":421},[345,575,576],{"class":359}," blob2 ",[345,578,428],{"class":355},[345,580,360],{"class":359},[345,582,436],{"class":355},[345,584,319],{"class":439},[345,586,442],{"class":359},[345,588,378],{"class":355},[345,590,591],{"class":347,"line":447},[345,592,408],{"emptyLinePlaceholder":407},[345,594,595],{"class":347,"line":471},[345,596,597],{"class":414},"\u002F\u002F Trigger download\n",[345,599,600,602,605,607,610,612,615,618],{"class":347,"line":476},[345,601,422],{"class":421},[345,603,604],{"class":359}," url ",[345,606,428],{"class":355},[345,608,609],{"class":359}," URL",[345,611,436],{"class":355},[345,613,614],{"class":439},"createObjectURL",[345,616,617],{"class":359},"(blob)",[345,619,378],{"class":355},[345,621,622,624,627,629,632,634,637,639,641,644,646,649],{"class":347,"line":482},[345,623,422],{"class":421},[345,625,626],{"class":359}," a ",[345,628,428],{"class":355},[345,630,631],{"class":359}," document",[345,633,436],{"class":355},[345,635,636],{"class":439},"createElement",[345,638,453],{"class":359},[345,640,375],{"class":355},[345,642,643],{"class":372},"a",[345,645,375],{"class":355},[345,647,648],{"class":359},")",[345,650,378],{"class":355},[345,652,653,655,657,660,662,665],{"class":347,"line":502},[345,654,643],{"class":359},[345,656,436],{"class":355},[345,658,659],{"class":359},"href ",[345,661,428],{"class":355},[345,663,664],{"class":359}," url",[345,666,378],{"class":355},[345,668,670,672,674,677,679,681,683,685],{"class":347,"line":669},11,[345,671,643],{"class":359},[345,673,436],{"class":355},[345,675,676],{"class":359},"download ",[345,678,428],{"class":355},[345,680,369],{"class":355},[345,682,458],{"class":372},[345,684,375],{"class":355},[345,686,378],{"class":355},[345,688,690,692,694,697,700],{"class":347,"line":689},12,[345,691,643],{"class":359},[345,693,436],{"class":355},[345,695,696],{"class":439},"click",[345,698,699],{"class":359},"()",[345,701,378],{"class":355},[345,703,705,708,710,713,716],{"class":347,"line":704},13,[345,706,707],{"class":359},"URL",[345,709,436],{"class":355},[345,711,712],{"class":439},"revokeObjectURL",[345,714,715],{"class":359},"(url)",[345,717,378],{"class":355},[325,719,721],{"id":720},"tobase64string","toBase64String",[294,723,724],{},"Returns a Base64-encoded string. Useful for data URLs or API payloads.",[336,726,728],{"className":338,"code":727,"language":340,"meta":341,"style":341},"\u002F\u002F Async\nconst base64 = await Packer.toBase64String(wb);\n\n\u002F\u002F Sync\nconst base642 = Packer.toBase64StringSync(wb);\n\nconst dataUrl = `data:application\u002Fvnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,${base64}`;\n",[298,729,730,734,755,759,763,783,787],{"__ignoreMap":341},[345,731,732],{"class":347,"line":348},[345,733,539],{"class":414},[345,735,736,738,741,743,745,747,749,751,753],{"class":347,"line":381},[345,737,422],{"class":421},[345,739,740],{"class":359}," base64 ",[345,742,428],{"class":355},[345,744,431],{"class":351},[345,746,360],{"class":359},[345,748,436],{"class":355},[345,750,721],{"class":439},[345,752,442],{"class":359},[345,754,378],{"class":355},[345,756,757],{"class":347,"line":404},[345,758,408],{"emptyLinePlaceholder":407},[345,760,761],{"class":347,"line":411},[345,762,569],{"class":414},[345,764,765,767,770,772,774,776,779,781],{"class":347,"line":418},[345,766,422],{"class":421},[345,768,769],{"class":359}," base642 ",[345,771,428],{"class":355},[345,773,360],{"class":359},[345,775,436],{"class":355},[345,777,778],{"class":439},"toBase64StringSync",[345,780,442],{"class":359},[345,782,378],{"class":355},[345,784,785],{"class":347,"line":447},[345,786,408],{"emptyLinePlaceholder":407},[345,788,789,791,794,796,799,802,805,808,811],{"class":347,"line":471},[345,790,422],{"class":421},[345,792,793],{"class":359}," dataUrl ",[345,795,428],{"class":355},[345,797,798],{"class":355}," `",[345,800,801],{"class":372},"data:application\u002Fvnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,",[345,803,804],{"class":355},"${",[345,806,807],{"class":359},"base64",[345,809,810],{"class":355},"}`",[345,812,378],{"class":355},[325,814,816],{"id":815},"tobytes","toBytes",[294,818,330,819,822,823,436],{},[298,820,821],{},"Uint8Array",". Useful when you need raw bytes without Node.js ",[298,824,333],{},[336,826,828],{"className":338,"code":827,"language":340,"meta":341,"style":341},"\u002F\u002F Async\nconst bytes = await Packer.toBytes(wb);\n\n\u002F\u002F Sync\nconst bytes2 = Packer.toBytesSync(wb);\n",[298,829,830,834,855,859,863],{"__ignoreMap":341},[345,831,832],{"class":347,"line":348},[345,833,539],{"class":414},[345,835,836,838,841,843,845,847,849,851,853],{"class":347,"line":381},[345,837,422],{"class":421},[345,839,840],{"class":359}," bytes ",[345,842,428],{"class":355},[345,844,431],{"class":351},[345,846,360],{"class":359},[345,848,436],{"class":355},[345,850,816],{"class":439},[345,852,442],{"class":359},[345,854,378],{"class":355},[345,856,857],{"class":347,"line":404},[345,858,408],{"emptyLinePlaceholder":407},[345,860,861],{"class":347,"line":411},[345,862,569],{"class":414},[345,864,865,867,870,872,874,876,879,881],{"class":347,"line":418},[345,866,422],{"class":421},[345,868,869],{"class":359}," bytes2 ",[345,871,428],{"class":355},[345,873,360],{"class":359},[345,875,436],{"class":355},[345,877,878],{"class":439},"toBytesSync",[345,880,442],{"class":359},[345,882,378],{"class":355},[325,884,886],{"id":885},"toarraybuffer","toArrayBuffer",[294,888,889,890,893],{},"Returns an ",[298,891,892],{},"ArrayBuffer",". Useful for browser or cross-platform code.",[336,895,897],{"className":338,"code":896,"language":340,"meta":341,"style":341},"\u002F\u002F Async\nconst ab = await Packer.toArrayBuffer(wb);\n\n\u002F\u002F Sync\nconst ab2 = Packer.toArrayBufferSync(wb);\n",[298,898,899,903,924,928,932],{"__ignoreMap":341},[345,900,901],{"class":347,"line":348},[345,902,539],{"class":414},[345,904,905,907,910,912,914,916,918,920,922],{"class":347,"line":381},[345,906,422],{"class":421},[345,908,909],{"class":359}," ab ",[345,911,428],{"class":355},[345,913,431],{"class":351},[345,915,360],{"class":359},[345,917,436],{"class":355},[345,919,886],{"class":439},[345,921,442],{"class":359},[345,923,378],{"class":355},[345,925,926],{"class":347,"line":404},[345,927,408],{"emptyLinePlaceholder":407},[345,929,930],{"class":347,"line":411},[345,931,569],{"class":414},[345,933,934,936,939,941,943,945,948,950],{"class":347,"line":418},[345,935,422],{"class":421},[345,937,938],{"class":359}," ab2 ",[345,940,428],{"class":355},[345,942,360],{"class":359},[345,944,436],{"class":355},[345,946,947],{"class":439},"toArrayBufferSync",[345,949,442],{"class":359},[345,951,378],{"class":355},[325,953,955],{"id":954},"tostring","toString",[294,957,958],{},"Returns a string representation. Useful for debugging.",[336,960,962],{"className":338,"code":961,"language":340,"meta":341,"style":341},"\u002F\u002F Async\nconst str = await Packer.toString(wb);\n\n\u002F\u002F Sync\nconst str2 = Packer.toStringSync(wb);\n",[298,963,964,968,989,993,997],{"__ignoreMap":341},[345,965,966],{"class":347,"line":348},[345,967,539],{"class":414},[345,969,970,972,975,977,979,981,983,985,987],{"class":347,"line":381},[345,971,422],{"class":421},[345,973,974],{"class":359}," str ",[345,976,428],{"class":355},[345,978,431],{"class":351},[345,980,360],{"class":359},[345,982,436],{"class":355},[345,984,955],{"class":439},[345,986,442],{"class":359},[345,988,378],{"class":355},[345,990,991],{"class":347,"line":404},[345,992,408],{"emptyLinePlaceholder":407},[345,994,995],{"class":347,"line":411},[345,996,569],{"class":414},[345,998,999,1001,1004,1006,1008,1010,1013,1015],{"class":347,"line":418},[345,1000,422],{"class":421},[345,1002,1003],{"class":359}," str2 ",[345,1005,428],{"class":355},[345,1007,360],{"class":359},[345,1009,436],{"class":355},[345,1011,1012],{"class":439},"toStringSync",[345,1014,442],{"class":359},[345,1016,378],{"class":355},[325,1018,1020],{"id":1019},"tostream","toStream",[294,1022,330,1023,1026],{},[298,1024,1025],{},"ReadableStream\u003CUint8Array>",". Useful for streaming large workbooks. Works in both Node.js and browsers. This method is always synchronous.",[336,1028,1030],{"className":338,"code":1029,"language":340,"meta":341,"style":341},"import { createWriteStream } from \"node:fs\";\nimport { Readable } from \"node:stream\";\n\nconst stream = Packer.toStream(wb);\nReadable.fromWeb(stream).pipe(createWriteStream(\"output.xlsx\"));\n",[298,1031,1032,1053,1075,1079,1098],{"__ignoreMap":341},[345,1033,1034,1036,1038,1041,1043,1045,1047,1049,1051],{"class":347,"line":348},[345,1035,352],{"class":351},[345,1037,356],{"class":355},[345,1039,1040],{"class":359}," createWriteStream",[345,1042,363],{"class":355},[345,1044,366],{"class":351},[345,1046,369],{"class":355},[345,1048,397],{"class":372},[345,1050,375],{"class":355},[345,1052,378],{"class":355},[345,1054,1055,1057,1059,1062,1064,1066,1068,1071,1073],{"class":347,"line":381},[345,1056,352],{"class":351},[345,1058,356],{"class":355},[345,1060,1061],{"class":359}," Readable",[345,1063,363],{"class":355},[345,1065,366],{"class":351},[345,1067,369],{"class":355},[345,1069,1070],{"class":372},"node:stream",[345,1072,375],{"class":355},[345,1074,378],{"class":355},[345,1076,1077],{"class":347,"line":404},[345,1078,408],{"emptyLinePlaceholder":407},[345,1080,1081,1083,1086,1088,1090,1092,1094,1096],{"class":347,"line":411},[345,1082,422],{"class":421},[345,1084,1085],{"class":359}," stream ",[345,1087,428],{"class":355},[345,1089,360],{"class":359},[345,1091,436],{"class":355},[345,1093,1020],{"class":439},[345,1095,442],{"class":359},[345,1097,378],{"class":355},[345,1099,1100,1103,1105,1108,1111,1113,1116,1118,1121,1123,1125,1127,1129,1132],{"class":347,"line":418},[345,1101,1102],{"class":359},"Readable",[345,1104,436],{"class":355},[345,1106,1107],{"class":439},"fromWeb",[345,1109,1110],{"class":359},"(stream)",[345,1112,436],{"class":355},[345,1114,1115],{"class":439},"pipe",[345,1117,453],{"class":359},[345,1119,1120],{"class":439},"createWriteStream",[345,1122,453],{"class":359},[345,1124,375],{"class":355},[345,1126,458],{"class":372},[345,1128,375],{"class":355},[345,1130,1131],{"class":359},"))",[345,1133,378],{"class":355},[325,1135,1136],{"id":1136},"compile",[294,1138,1139,1140,1143],{},"Returns the raw ",[298,1141,1142],{},"Zippable"," file map without compressing. Useful when you need to customize the ZIP process.",[336,1145,1147],{"className":338,"code":1146,"language":340,"meta":341,"style":341},"const files = Packer.compile(wb);\n\u002F\u002F files is a Zippable — can be passed to custom zip functions\n",[298,1148,1149,1168],{"__ignoreMap":341},[345,1150,1151,1153,1156,1158,1160,1162,1164,1166],{"class":347,"line":348},[345,1152,422],{"class":421},[345,1154,1155],{"class":359}," files ",[345,1157,428],{"class":355},[345,1159,360],{"class":359},[345,1161,436],{"class":355},[345,1163,1136],{"class":439},[345,1165,442],{"class":359},[345,1167,378],{"class":355},[345,1169,1170],{"class":347,"line":381},[345,1171,1172],{"class":414},"\u002F\u002F files is a Zippable — can be passed to custom zip functions\n",[325,1174,1176],{"id":1175},"summary","Summary",[1178,1179,1180,1202],"table",{},[1181,1182,1183],"thead",{},[1184,1185,1186,1190,1193,1196,1199],"tr",{},[1187,1188,1189],"th",{},"Method",[1187,1191,1192],{},"Async Return",[1187,1194,1195],{},"Sync Return",[1187,1197,1198],{},"Environment",[1187,1200,1201],{},"Use Case",[1203,1204,1205,1227,1248,1269,1290,1309,1329,1348],"tbody",{},[1184,1206,1207,1212,1217,1221,1224],{},[1208,1209,1210],"td",{},[298,1211,308],{},[1208,1213,1214],{},[298,1215,1216],{},"Promise\u003CBuffer>",[1208,1218,1219],{},[298,1220,333],{},[1208,1222,1223],{},"Node.js",[1208,1225,1226],{},"File I\u002FO",[1184,1228,1229,1233,1238,1242,1245],{},[1208,1230,1231],{},[298,1232,312],{},[1208,1234,1235],{},[298,1236,1237],{},"Promise\u003CBlob>",[1208,1239,1240],{},[298,1241,528],{},[1208,1243,1244],{},"Browser",[1208,1246,1247],{},"Downloads",[1184,1249,1250,1254,1259,1263,1266],{},[1208,1251,1252],{},[298,1253,816],{},[1208,1255,1256],{},[298,1257,1258],{},"Promise\u003CUint8Array>",[1208,1260,1261],{},[298,1262,821],{},[1208,1264,1265],{},"Any",[1208,1267,1268],{},"Raw bytes",[1184,1270,1271,1275,1280,1285,1287],{},[1208,1272,1273],{},[298,1274,721],{},[1208,1276,1277],{},[298,1278,1279],{},"Promise\u003Cstring>",[1208,1281,1282],{},[298,1283,1284],{},"string",[1208,1286,1265],{},[1208,1288,1289],{},"Data URLs, APIs",[1184,1291,1292,1296,1300,1304,1306],{},[1208,1293,1294],{},[298,1295,955],{},[1208,1297,1298],{},[298,1299,1279],{},[1208,1301,1302],{},[298,1303,1284],{},[1208,1305,1265],{},[1208,1307,1308],{},"Debugging",[1184,1310,1311,1315,1320,1324,1326],{},[1208,1312,1313],{},[298,1314,886],{},[1208,1316,1317],{},[298,1318,1319],{},"Promise\u003CArrayBuffer>",[1208,1321,1322],{},[298,1323,892],{},[1208,1325,1265],{},[1208,1327,1328],{},"Memory handling",[1184,1330,1331,1335,1339,1342,1345],{},[1208,1332,1333],{},[298,1334,1020],{},[1208,1336,1337],{},[298,1338,1025],{},[1208,1340,1341],{},"—",[1208,1343,1344],{},"Both",[1208,1346,1347],{},"Large files",[1184,1349,1350,1354,1356,1360,1362],{},[1208,1351,1352],{},[298,1353,1136],{},[1208,1355,1341],{},[1208,1357,1358],{},[298,1359,1142],{},[1208,1361,1265],{},[1208,1363,1364],{},"Custom ZIP",[1366,1367,1368],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":341,"searchDepth":381,"depth":381,"links":1370},[1371,1372,1373,1374,1375,1376,1377,1378,1379],{"id":327,"depth":381,"text":308},{"id":523,"depth":381,"text":312},{"id":720,"depth":381,"text":721},{"id":815,"depth":381,"text":816},{"id":885,"depth":381,"text":886},{"id":954,"depth":381,"text":955},{"id":1019,"depth":381,"text":1020},{"id":1136,"depth":381,"text":1136},{"id":1175,"depth":381,"text":1176},"Export workbooks to Buffer, Blob, Base64, stream, and more","md",null,{},{"title":153,"description":1380},"NYsvP-3D70eIOJc3wxlB--MFVqR_oVbLsWpT5yqub3U",[1387,1389],{"title":276,"path":277,"stem":278,"description":1388,"children":-1},"List, number, date, and custom data validations",{"title":68,"path":283,"stem":284,"description":1390,"children":-1},"Parse, inspect, and round-trip .xlsx files",1780139796084]