{
  "id": "task_libraries:compression/javascript",
  "path": "/exapedia/javascript-compression-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript compression libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript compression libraries shrink bytes and strings with formats such as gzip, DEFLATE, and Brotli. An archive format such as ZIP or tar bundles many files into one container with each file compressed inside it. These libraries reduce the size of API responses, file exports, and values kept in browser storage."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript compression libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pako",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fflate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tar",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lz-string",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#yauzl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jszip",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#archiver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#compression",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pako",
          "label": [
            {
              "t": "text",
              "text": "pako"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F134"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "ZIP creation",
            "Gzip compression",
            "Browser byte API"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pako",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fflate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tar",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lz-string",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#yauzl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jszip",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#archiver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#compression",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pako",
          "name": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nodeca/pako"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pako"
            },
            {
              "label": "Docs",
              "href": "https://nodeca.github.io/pako/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://nodeca.github.io/pako/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/opf/openproject",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "protected toEprops(params:unknown):{ eprops:string } {\n  const deflatedArray = Pako.deflate(JSON.stringify(params));\n\n  const compressed = base64.bytesToBase64(deflatedArray);\n\n  return { eprops: compressed };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/opf/openproject/blob/8c1a979057b8e1da86d4aabe1587a548d3bd54b4/frontend/src/app/features/hal/services/hal-resource.service.ts#L311-L317",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20pako%20to%20compress%20browser%20storage%2C%20stream%20archive%20entries%20or%20decode%20compressed%20payloads&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { deflate } from 'pako';\n\nconst compressed = deflate('Hello world!');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://nodeca.github.io/pako/",
                  "label": [
                    {
                      "t": "text",
                      "text": "pako docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fflate",
          "name": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/101arrowz/fflate"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fflate"
            },
            {
              "label": "Docs",
              "href": "https://github.com/101arrowz/fflate/blob/dcb3714a6c25db3a2748641019c5277413d09714/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F34"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/101arrowz/fflate/blob/dcb3714a6c25db3a2748641019c5277413d09714/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/angular/angular",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function generateZip(files: FileAndContent[]): Promise<Uint8Array> {\n  if (zip === undefined || strToU8 === undefined) {\n    const fflate = require('fflate');\n    zip = fflate.zip;\n    strToU8 = fflate.strToU8;\n  }\n  const filesObj: Record<string, Uint8Array> = {};\n  files.forEach(({path, content}) => {\n    filesObj[path] = typeof content === 'string' ? strToU8(content) : content;\n  });\n\n  return new Promise((resolve, reject) => {\n    zip(filesObj, (err: any, data: any) => {\n      if (err) {\n        reject(err);\n      } else {\n        resolve(data);\n      }\n    });\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/angular/angular/blob/ca92b968b8ec43ec2037302ac5e1104948aea924/adev/shared-docs/utils/zip.utils.ts#L16-L36",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20fflate%20to%20compress%20browser%20storage%2C%20stream%20archive%20entries%20or%20decode%20compressed%20payloads&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { strToU8, gzipSync } from 'fflate';\n\nconst compressed = gzipSync(strToU8('Hello world!'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/101arrowz/fflate/blob/dcb3714a6c25db3a2748641019c5277413d09714/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tar",
          "name": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/isaacs/node-tar"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/tar"
            },
            {
              "label": "Docs",
              "href": "https://github.com/isaacs/node-tar/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F279"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/isaacs/node-tar/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/vscode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function buildTarball(stagingDir: string, outTgz: string): Promise<void> {\n\tawait tar.c(\n\t\t{\n\t\t\tfile: outTgz,\n\t\t\tcwd: stagingDir,\n\t\t\tgzip: { level: 9 },\n\t\t\tportable: true,\n\t\t\tmtime: new Date(0),\n\t\t},\n\t\t['prebuilds'],\n\t);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/vscode/blob/9b61e7d80599cef2f14c6f3b1c286a9f611686db/build/dictation-runtime/package.ts#L142-L153",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=tar%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { create } from 'tar';\n\nawait create({ gzip: true, file: 'archive.tgz' }, ['hello.txt']);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/isaacs/node-tar/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "lz-string",
          "name": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pieroxy/lz-string"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/lz-string"
            },
            {
              "label": "Docs",
              "href": "https://pieroxy.net/blog/pages/lz-string/index.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pieroxy.net/blog/pages/lz-string/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/palantir/blueprint",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function compress(input: string) {\n    return LZString.compressToBase64(input)\n        .replace(/\\+/g, `-`) // Convert '+' to '-'\n        .replace(/\\//g, `_`) // Convert '/' to '_'\n        .replace(/=+$/, ``); // Remove ending '='\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/palantir/blueprint/blob/47852d7ad3b1346b1fe24095f80566477629d269/packages/docs-theme/src/common/sandbox.ts#L16-L21",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20lz-string%20to%20compress%20browser%20storage%2C%20stream%20archive%20entries%20or%20decode%20compressed%20payloads&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const LZString = require('lz-string');\n\nconst compressed = LZString.compressToUTF16('Hello world!');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pieroxy.net/blog/pages/lz-string/guide.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "guide.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "yauzl",
          "name": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/thejoshwolfe/yauzl"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/yauzl"
            },
            {
              "label": "Docs",
              "href": "https://github.com/thejoshwolfe/yauzl/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/thejoshwolfe/yauzl/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/overleaf/overleaf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function _extractZipFiles(source, destination) {\n  return new Promise((resolve, reject) => {\n    let settled = false\n    const done = err => {\n      if (settled) return\n      settled = true\n      if (err) reject(err)\n      else resolve()\n    }\n\n    yauzl.open(source, { lazyEntries: true }, (err, zipfile) => {\n      if (err) return done(err)\n\n      zipfile.on('error', err => done(err))\n      // read all the entries\n      zipfile.readEntry()\n\n      let entryFileCount = 0\n      zipfile.on('entry', entry => {\n        if (FileTypeManager.shouldIgnore(entry.fileName)) {\n          return zipfile.readEntry()\n        }\n\n        let destFile\n        try {\n          destFile = _checkFilePath(entry, destination)\n        } catch (err) {\n          logger.warn({ err, source, destination }, 'skipping bad file path')\n          zipfile.readEntry() // bad path, just skip to the next file\n          return\n        }\n        if (destFile) {\n          // only write files\n          _writeFileEntry(zipfile, entry, destFile, err => {\n            if (err) {\n              OError.tag(err, 'error unzipping file entry', {\n                source,\n                destFile,\n              })\n              zipfile.close() // bail out, stop reading file entries\n              done(new InvalidZipFileError().withCause(err))\n            } else {\n              entryFileCount++\n              zipfile.readEntry() // continue to the next file\n            }\n          })\n        } else {\n          // if it's a directory, continue\n          zipfile.readEntry()\n        }\n      })\n\n      // no more entries to read\n      zipfile.on('end', () => {\n        if (entryFileCount > 0) {\n          done()\n        } else {\n          done(new EmptyZipFileError())\n        }\n      })\n    })\n  })\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/overleaf/overleaf/blob/e039ad26c5bf5422eb57b89fc7e57c75055e631d/services/web/app/src/Features/Uploads/ArchiveManager.mjs#L127-L189",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=yauzl%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const yauzl = require('yauzl');\n\nyauzl.open('archive.zip', { lazyEntries: true }, (err, zipfile) => {\n  if (err) throw err;\n  zipfile.close();\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/thejoshwolfe/yauzl/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jszip",
          "name": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Stuk/jszip"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jszip"
            },
            {
              "label": "Docs",
              "href": "https://github.com/Stuk/jszip/blob/main/index.d.ts"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F289"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Stuk/jszip/blob/main/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dolanmiu/docx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "public static async pack<T extends OutputType>(\n    file: File,\n    type: T,\n    prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType],\n    overrides: readonly IXmlifyedFile[] = [],\n): Promise<OutputByType[T]> {\n    const zip = this.compiler.compile(file, convertPrettifyType(prettify), overrides);\n    return zip.generateAsync({\n        type,\n        mimeType: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n        compression: \"DEFLATE\",\n    });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dolanmiu/docx/blob/f73676fb9dab425edd8614fecfe7270ee2b9c876/src/export/packer/packer.ts#L26-L38",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=jszip%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const JSZip = require('jszip');\n\nconst zip = new JSZip();\nzip.file('hello.txt', 'Hello world!');\nconst compressedZipPromise = zip.generateAsync({ type: 'uint8array', compression: 'DEFLATE' });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Stuk/jszip/blob/main/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "archiver",
          "name": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/archiverjs/node-archiver"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/archiver"
            },
            {
              "label": "Docs",
              "href": "https://github.com/archiverjs/node-archiver/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F294"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/archiverjs/node-archiver/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "append(content: string | Uint8Array, options: ZipArchiveEntryOptions) {\n    if (this.#error) {\n        throw this.#error;\n    }\n    // A Buffer view over the same memory rather than a copy; archiver only reads, so sharing is safe.\n    const payload = typeof content === \"string\" ? content : asBuffer(content);\n    const size = typeof content === \"string\" ? Buffer.byteLength(content) : content.byteLength;\n    this.#pendingSizes.push(size);\n    this.#queuedBytes += size;\n    // `store` (and `date`) pass straight through: archiver preserves extra\n    // entry-data fields and zip-stream switches to the STORE method when set.\n    this.#archive.append(payload, options);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium/blob/3c60eac13f66161492334efefa2613923ebe541f/apps/server/src/zip_provider.ts#L60-L72",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=archiver%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import fs from 'node:fs';\nimport { ZipArchive } from 'archiver';\n\nconst output = fs.createWriteStream('archive.zip');\nconst archive = new ZipArchive();\noutput.on('error', console.error);\narchive.on('error', console.error);\narchive.pipe(output);\narchive.append('Hello world!', { name: 'hello.txt' });\nawait archive.finalize();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/archiverjs/node-archiver/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "compression",
          "name": [
            {
              "t": "fact",
              "fact": "F260"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/expressjs/compression"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/compression"
            },
            {
              "label": "Docs",
              "href": "https://github.com/expressjs/compression/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F299"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/expressjs/compression/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ember-cli/ember-cli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F277"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async startHttpServer() {\n  this.app = this.express();\n  const compression = require('compression');\n  this.app.use(\n    compression({\n      filter(req, res) {\n        let type = res.getHeader('Content-Type');\n\n        if (res.getHeader('x-no-compression')) {\n          // don't compress responses with this response header\n          return false;\n        } else if (type && type.indexOf('text/event-stream') > -1) {\n          // don't attempt to compress server sent events\n          return false;\n        } else {\n          return compression.filter(req, res);\n        }\n      },\n    })\n  );\n\n  this.setupHttpServer();\n\n  let options = this.startOptions;\n  options.httpServer = this.httpServer;\n  let liveReloadServer;\n\n  if (options.path) {\n    liveReloadServer = {\n      setupMiddleware() {},\n    };\n  } else {\n    liveReloadServer = new LiveReloadServer({\n      app: this.app,\n      ui: options.ui,\n      watcher: options.watcher,\n      project: options.project,\n      httpServer: options.httpServer,\n    });\n  }\n\n  const config = this.project.config(options.environment);\n  const middlewareOptions = Object.assign({}, options, {\n    rootURL: config.rootURL,\n  });\n\n  await liveReloadServer.setupMiddleware(this.startOptions);\n  await this.processAppMiddlewares(middlewareOptions);\n  await this.processAddonMiddlewares(middlewareOptions);\n\n  return this.listen(options.port, options.host).catch(() => {\n    throw new SilentError(\n      `Could not serve on http://${this.displayHost(options.host)}:${options.port}. ` +\n        `It is either in use or you do not have permission.`\n    );\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ember-cli/ember-cli/blob/8c05d41d9764a3e938a99cabff6cf56dbd30cc3c/lib/tasks/server/express-server.js#L208-L264",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=compression%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F260"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const express = require('express');\nconst compression = require('compression');\n\nconst app = express();\napp.use(compression());\napp.get('/', (_req, res) => res.send('Hello world!'.repeat(1000)));\napp.listen(3000);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/expressjs/compression/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F265"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is JSZip?",
      "a": [
        {
          "t": "link",
          "href": "#jszip",
          "label": [
            {
              "t": "text",
              "text": "JSZip"
            }
          ]
        },
        {
          "t": "text",
          "text": " creates, reads, and edits ZIP files from JavaScript. Each file in the archive can set its own DEFLATE compression level."
        }
      ]
    },
    {
      "q": "What is lz-string?",
      "a": [
        {
          "t": "link",
          "href": "#lz-string",
          "label": [
            {
              "t": "text",
              "text": "lz-string"
            }
          ]
        },
        {
          "t": "text",
          "text": " compresses JavaScript strings for browser storage and URLs. "
        },
        {
          "t": "fact",
          "fact": "F65"
        }
      ]
    },
    {
      "q": "How do I gzip data in JavaScript?",
      "a": [
        {
          "t": "link",
          "href": "#pako",
          "label": [
            {
              "t": "text",
              "text": "pako"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#fflate",
          "label": [
            {
              "t": "text",
              "text": "fflate"
            }
          ]
        },
        {
          "t": "text",
          "text": " compress bytes and strings to gzip in the browser and in Node.js. In an Express server, the "
        },
        {
          "t": "link",
          "href": "#compression",
          "label": [
            {
              "t": "text",
              "text": "compression"
            }
          ]
        },
        {
          "t": "text",
          "text": " middleware gzips response bodies instead."
        }
      ]
    },
    {
      "q": "How do I create a tar archive in Node.js?",
      "a": [
        {
          "t": "link",
          "href": "#tar",
          "label": [
            {
              "t": "text",
              "text": "tar"
            }
          ]
        },
        {
          "t": "text",
          "text": " creates and extracts tar archives in Node.js with an API modeled on the Unix tar command."
        }
      ]
    },
    {
      "q": "Why can an asynchronous call be slower for a small input?",
      "a": [
        {
          "t": "fact",
          "fact": "F123"
        }
      ]
    },
    {
      "q": "Can pako change compression settings midway through a stream?",
      "a": [
        {
          "t": "fact",
          "fact": "F127"
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pako",
      "display": "pako",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pako",
      "display": "695.7M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, pako",
      "display": "(MIT AND Zlib)",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pako",
      "display": "3.0.3",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, pako",
      "display": "v3.0.3",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, pako",
      "display": "6.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Compresses data, pako",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Decompresses data, pako",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Streaming, pako",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, pako",
      "display": "npm install pako",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, pako",
      "display": "Provides zlib-compatible compression and decompression in JavaScript.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, pako",
      "display": "Compresses JavaScript strings directly",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, pako",
      "display": "String input is encoded as UTF-8 before compression.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, pako",
      "display": "Processes data in chunks",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, pako",
      "display": "Push incoming chunks through Deflate or Inflate.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, pako",
      "display": "Cannot retune a running deflator",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, pako",
      "display": "Choose settings before starting; deflateParams is unavailable.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "Quickstart, pako",
      "display": "import { deflate, inflate } from 'pako';\n\nconst test = { my: 'super', puper: [456, 567], awesome: 'pako' };\n\nconst compressed = deflate(JSON.stringify(test));\n\nconst restored = JSON.parse(inflate(compressed, { toText: true }));\n",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Project function, pako",
      "display": "export const gzipDecompressToString = async (\n\tdata: Uint8Array,\n): Promise<string> => {\n\treturn new Promise((resolve, reject) => {\n\t\ttry {\n\t\t\tconst result: string = ungzip(data, { to: 'string' });\n\t\t\tresolve(result);\n\t\t} catch (error) {\n\t\t\treject(new Error('unable to decompress' + error));\n\t\t}\n\t});\n};\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function reference, pako",
      "display": "utils.native.ts · gzipDecompressToString()",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project repository, pako",
      "display": "aws-amplify/amplify-js",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project stars, aws-amplify/amplify-js",
      "display": "9.6K",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project push date, aws-amplify/amplify-js",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F24": {
      "label": "Library name, fflate",
      "display": "fflate",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Monthly downloads, fflate",
      "display": "575.7M",
      "asOf": "2026-11-15"
    },
    "F26": {
      "label": "License, fflate",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Package release, fflate",
      "display": "0.8.3",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Undated package release, fflate",
      "display": "v0.8.3",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Repository stars, fflate",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Compresses data, fflate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Decompresses data, fflate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Streaming, fflate",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Install, fflate",
      "display": "npm install fflate",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "What it does, fflate",
      "display": "Compresses and decompresses DEFLATE, gzip and zlib data with optional ZIP archiving.",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths lead, fflate",
      "display": "Offloads asynchronous work to workers",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths, fflate",
      "display": "Use callback APIs to avoid blocking the main thread.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, fflate",
      "display": "Streams multi-file ZIP archives",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, fflate",
      "display": "Add file streams before pushing their data.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations lead, fflate",
      "display": "Async calls pay startup overhead",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations, fflate",
      "display": "Prefer synchronous APIs for small payloads.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, fflate",
      "display": "Consumed input buffers become unusable",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, fflate",
      "display": "Copy data before enabling consume when it must be reused.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Quickstart, fflate",
      "display": "import * as fflate from 'fflate';\n\nconst buf = fflate.strToU8('Hello world!');\n\n// The default compression method is gzip\n// Increasing mem may increase performance at the cost of memory\n// The mem ranges from 0 to 12, where 4 is the default\nconst compressed = fflate.compressSync(buf, { level: 6, mem: 8 });\n\n// When you need to decompress:\nconst decompressed = fflate.decompressSync(compressed);\nconst origText = fflate.strFromU8(decompressed);\nconsole.log(origText); // Hello world!\n",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project function, fflate",
      "display": "export async function generateZip(files: FileAndContent[]): Promise<Uint8Array> {\n  if (zip === undefined || strToU8 === undefined) {\n    const fflate = require('fflate');\n    zip = fflate.zip;\n    strToU8 = fflate.strToU8;\n  }\n  const filesObj: Record<string, Uint8Array> = {};\n  files.forEach(({path, content}) => {\n    filesObj[path] = typeof content === 'string' ? strToU8(content) : content;\n  });\n\n  return new Promise((resolve, reject) => {\n    zip(filesObj, (err: any, data: any) => {\n      if (err) {\n        reject(err);\n      } else {\n        resolve(data);\n      }\n    });\n  });\n}\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function reference, fflate",
      "display": "zip.utils.ts · generateZip()",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project repository, fflate",
      "display": "angular/angular",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project stars, angular/angular",
      "display": "101.5K",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project push date, angular/angular",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, fflate",
      "display": "export const streamFileToZip = (\n  absPath: string,\n  relPath: string,\n  zip: Zip,\n  onAbort: () => void,\n  onError: (error: Error) => void,\n): void => {\n  const data = new AsyncZipDeflate(relPath, { level: 1 });\n  void zip.add(data);\n\n  createReadStream(absPath)\n    .on('data', (chunk: string | Buffer) =>\n      typeof chunk === 'string' ? data.push(Buffer.from(chunk), false) : data.push(chunk, false),\n    )\n    .on('end', () => data.push(new Uint8Array(0), true))\n    .on('error', error => {\n      onAbort();\n      onError(error);\n    });\n};\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, fflate",
      "display": "stream-file-to-zip.ts · streamFileToZip()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, fflate",
      "display": "Jonghakseo/chrome-extension-boilerplate-react-vite",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, Jonghakseo/chrome-extension-boilerplate-react-vite",
      "display": "4.9K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, Jonghakseo/chrome-extension-boilerplate-react-vite",
      "display": "Oct 2025",
      "asOf": "2025-10-27"
    },
    "F54": {
      "label": "Library name, lz-string",
      "display": "lz-string",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, lz-string",
      "display": "404.0M",
      "asOf": "2026-11-15"
    },
    "F56": {
      "label": "License, lz-string",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, lz-string",
      "display": "1.5.0",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Undated package release, lz-string",
      "display": "v1.5.0",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Repository stars, lz-string",
      "display": "4.4K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Compresses data, lz-string",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Decompresses data, lz-string",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, lz-string",
      "display": "npm install lz-string",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, lz-string",
      "display": "Compresses JavaScript strings for storage and URL-safe transport.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, lz-string",
      "display": "Targets string-based browser storage",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, lz-string",
      "display": "Use compressToUTF16 for UTF-16-safe stored strings.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, lz-string",
      "display": "Builds URI-safe compressed values",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, lz-string",
      "display": "Use compressToEncodedURIComponent when compressed data belongs in URLs.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, lz-string",
      "display": "Raw output is invalid UTF-16",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, lz-string",
      "display": "Use compressToUTF16 when storage requires valid text.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, lz-string",
      "display": "Cross-language ports can differ",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, lz-string",
      "display": "Verify matching encoded bytes before exchanging data with server-side ports.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, lz-string",
      "display": "var string = \"This is my compression test.\"; alert(\"Size of sample is: \" + string.length); var compressed = LZString.compressToUint8Array(string); alert(\"Size of compressed sample is: \" + compressed.length); string = LZString.decompressFromUint8Array(compressed); alert(\"Sample is: \" + string);",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, lz-string",
      "display": "function compress(input: string) {\n    return LZString.compressToBase64(input)\n        .replace(/\\+/g, `-`) // Convert '+' to '-'\n        .replace(/\\//g, `_`) // Convert '/' to '_'\n        .replace(/=+$/, ``); // Remove ending '='\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, lz-string",
      "display": "sandbox.ts · compress()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, lz-string",
      "display": "palantir/blueprint",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, palantir/blueprint",
      "display": "22.2K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, palantir/blueprint",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Library name, brotli-wasm",
      "display": "brotli-wasm",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, brotli-wasm",
      "display": "7.2M",
      "asOf": "2026-11-15"
    },
    "F80": {
      "label": "License, brotli-wasm",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, brotli-wasm",
      "display": "3.0.1",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Undated package release, brotli-wasm",
      "display": "v3.0.1",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Repository stars, brotli-wasm",
      "display": "307",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Compresses data, brotli-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Decompresses data, brotli-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Streaming, brotli-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, brotli-wasm",
      "display": "npm install brotli-wasm",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, brotli-wasm",
      "display": "Compresses and decompresses Brotli data in Node and browsers through WebAssembly.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, brotli-wasm",
      "display": "Shares a browser-compatible API",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, brotli-wasm",
      "display": "Use the awaited default export across Node and browser code.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, brotli-wasm",
      "display": "Supports incremental Brotli streams",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, brotli-wasm",
      "display": "Use CompressStream and DecompressStream for chunked data.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, brotli-wasm",
      "display": "Browser imports require initialization",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, brotli-wasm",
      "display": "Await the default export before calling compression methods.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, brotli-wasm",
      "display": "Compression tuning exposes quality only",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, brotli-wasm",
      "display": "Set quality; the wrapper does not expose other compression settings.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, brotli-wasm",
      "display": "import brotliPromise from 'brotli-wasm'; // Import the default export\n\nconst brotli = await brotliPromise; // Import is async in browsers due to wasm requirements!\n\nconst textEncoder = new TextEncoder();\nconst textDecoder = new TextDecoder();\n\nconst input = 'some input';\n\nconst uncompressedData = textEncoder.encode(input);\nconst compressedData = brotli.compress(uncompressedData);\nconst decompressedData = brotli.decompress(compressedData);\n\nconsole.log(textDecoder.decode(decompressedData)); // Prints 'some input'\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project function, brotli-wasm",
      "display": "export async function compressPayload(\n  data: Uint8Array\n): Promise<{ compressed: Uint8Array; flag: 0x00 | 0x01 }> {\n  await ensureBrotliInitialized();\n\n  if (!brotliModule) {\n    throw new Error('Brotli module not initialized');\n  }\n\n  // Try Brotli compression (quality 5, window 22 bits per spec)\n  const compressed = brotliModule.compress(data, {\n    quality: 5,\n    lgwin: 22, // 22 bits = 4 MB window\n  });\n\n  // Only use compression if it's actually smaller (including the flag byte)\n  if (compressed.length + 1 < data.length + 1) {\n    return {\n      compressed,\n      flag: COMPRESSION_FLAG_BROTLI,\n    };\n  }\n\n  // No compression is better\n  return {\n    compressed: data,\n    flag: COMPRESSION_FLAG_NONE,\n  };\n}\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project function reference, brotli-wasm",
      "display": "compression.ts · compressPayload()",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project repository, brotli-wasm",
      "display": "base/account-sdk",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project stars, base/account-sdk",
      "display": "171",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project push date, base/account-sdk",
      "display": "Oct 2026",
      "asOf": "2026-10-29"
    },
    "F103": {
      "label": "Developer need",
      "display": "Processing incremental zlib-compatible data",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose pako",
      "display": "chunk-oriented Deflate and Inflate interfaces",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "processing incremental zlib-compatible data",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider fflate",
      "display": "worker-backed asynchronous compression is the priority",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Moving async work off-thread",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose fflate",
      "display": "library-provided worker APIs",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "moving async work off-thread",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider pako",
      "display": "direct JavaScript string input is useful",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Storing compressed browser strings",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose lz-string",
      "display": "UTF-16-safe storage output",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "storing compressed browser strings",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need",
      "display": "Streaming Brotli payloads",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Why choose brotli-wasm",
      "display": "incremental Brotli compression classes",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Developer need in introduction",
      "display": "streaming Brotli payloads",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "When to consider fflate",
      "display": "worker offload matters more than selecting Brotli",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Page introduction",
      "display": "JavaScript compression libraries let developers compress and decompress data.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Is streaming compression the same as worker offload?",
      "display": "fflate exposes incremental streams and separately uses workers for its asynchronous APIs.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Is streaming compression the same as worker offload?",
      "display": "Its asynchronous APIs use Worker.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which package supports streaming ZIP files?",
      "display": "fflate provides ZIP streams that take streams as input and output.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Must a file stream be added before its data is pushed into a ZIP?",
      "display": "The own fflate ZIP example explicitly adds streams before pushing their data.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Why can an asynchronous call be slower for a small input?",
      "display": "fflate warns about worker startup overhead and slower async APIs on small payloads.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: What happens when fflate consume is enabled?",
      "display": "The source input buffer becomes unusable after consumption; preserve a copy when reuse is needed.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can pako compress JavaScript strings directly?",
      "display": "Its deflate helpers automatically encode strings as UTF-8 before compression.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: How does current pako return decoded text?",
      "display": "High-level inflate helpers use toText:true for UTF-8 strings in the current stable README.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can pako change compression settings midway through a stream?",
      "display": "Its own missing-function list includes deflateParams; choose required settings before starting the stream.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why choose text-safe output instead of raw lz-string compression?",
      "display": "Raw compress output is invalid UTF-16, whereas compressToUTF16 produces valid UTF-16 strings.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Why choose text-safe output instead of raw lz-string compression?",
      "display": "The UTF-16 encoder is intended for string storage.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Which lz-string method produces values for URL transport?",
      "display": "compressToEncodedURIComponent produces ASCII strings with URI-safe Base64 adjustments.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Why must browser code await brotli-wasm?",
      "display": "Browser entry points require asynchronous WASM setup; the default export can be awaited across both hosts.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does brotli-wasm expose every Brotli compression setting?",
      "display": "Its stable wrapper lists quality as the only supported compression option.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Library name, pako",
      "display": "pako",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Monthly downloads, pako",
      "display": "714.9M",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "License, pako",
      "display": "(MIT AND Zlib)",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release, pako",
      "display": "3.0.3",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release date, pako",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Install, pako",
      "display": "npm install pako",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Quickstart, pako",
      "display": "import { deflate } from 'pako';\n\nconst compressed = deflate('Hello world!');\n",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Repository stars, pako",
      "display": "6.1K",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "ZIP creation, pako",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Gzip compression, pako",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Browser byte API, pako",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Native role, pako",
      "display": "Pure JavaScript DEFLATE/zlib/gzip byte codec; ZIP framing is supplied separately.",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Host and first-call requirements, pako",
      "display": "Modern supported JavaScript module/bundler host. Current3 uses toText for text decompression; this first call only compresses a string.",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project function, pako",
      "display": "protected toEprops(params:unknown):{ eprops:string } {\n  const deflatedArray = Pako.deflate(JSON.stringify(params));\n\n  const compressed = base64.bytesToBase64(deflatedArray);\n\n  return { eprops: compressed };\n}\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project source file, pako",
      "display": "frontend/src/app/features/hal/services/hal-resource.service.ts",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project full_name, pako",
      "display": "opf/openproject",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project stargazers_count, pako",
      "display": "17.5K",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Library name, fflate",
      "display": "fflate",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Monthly downloads, fflate",
      "display": "591.7M",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "License, fflate",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release, fflate",
      "display": "0.8.3",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release date, fflate",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Install, fflate",
      "display": "npm install fflate",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Quickstart, fflate",
      "display": "import { strToU8, gzipSync } from 'fflate';\n\nconst compressed = gzipSync(strToU8('Hello world!'));\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Repository stars, fflate",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "ZIP creation, fflate",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Gzip compression, fflate",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Browser byte API, fflate",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Native role, fflate",
      "display": "Pure JavaScript byte codecs plus ZIP generation/extraction, incremental streams, and worker-backed async methods.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Host and first-call requirements, fflate",
      "display": "Supported browser bundler or Node ES module host; synchronous first call, no worker offload.",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project function, fflate",
      "display": "export async function generateZip(files: FileAndContent[]): Promise<Uint8Array> {\n  if (zip === undefined || strToU8 === undefined) {\n    const fflate = require('fflate');\n    zip = fflate.zip;\n    strToU8 = fflate.strToU8;\n  }\n  const filesObj: Record<string, Uint8Array> = {};\n  files.forEach(({path, content}) => {\n    filesObj[path] = typeof content === 'string' ? strToU8(content) : content;\n  });\n\n  return new Promise((resolve, reject) => {\n    zip(filesObj, (err: any, data: any) => {\n      if (err) {\n        reject(err);\n      } else {\n        resolve(data);\n      }\n    });\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project source file, fflate",
      "display": "adev/shared-docs/utils/zip.utils.ts",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project full_name, fflate",
      "display": "angular/angular",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project stargazers_count, fflate",
      "display": "101.5K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Library name, tar",
      "display": "tar",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Monthly downloads, tar",
      "display": "459.8M",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "License, tar",
      "display": "BlueOak-1.0.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release, tar",
      "display": "7.5.23",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release date, tar",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Install, tar",
      "display": "npm install tar",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart, tar",
      "display": "import { create } from 'tar';\n\nawait create({ gzip: true, file: 'archive.tgz' }, ['hello.txt']);\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Official description, tar",
      "display": "tar for node",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Quickstart source file, tar",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Repository stars, tar",
      "display": "925",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "ZIP creation, tar",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Gzip compression, tar",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Browser byte API, tar",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Native role, tar",
      "display": "Node filesystem and stream tar-archive workflows, optionally gzip; not a ZIP writer.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Host and first-call requirements, tar",
      "display": "Supported Node module host with top-level await, existing readable hello.txt, and writable destination. Does not run in a browser.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project function, tar",
      "display": "async function buildTarball(stagingDir: string, outTgz: string): Promise<void> {\n\tawait tar.c(\n\t\t{\n\t\t\tfile: outTgz,\n\t\t\tcwd: stagingDir,\n\t\t\tgzip: { level: 9 },\n\t\t\tportable: true,\n\t\t\tmtime: new Date(0),\n\t\t},\n\t\t['prebuilds'],\n\t);\n}\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project source file, tar",
      "display": "build/dictation-runtime/package.ts",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project full_name, tar",
      "display": "microsoft/vscode",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project stargazers_count, tar",
      "display": "195.5K",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Library name, lz-string",
      "display": "lz-string",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Monthly downloads, lz-string",
      "display": "414.8M",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "License, lz-string",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release, lz-string",
      "display": "1.5.0",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release date, lz-string",
      "display": "Mar 2023",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Install, lz-string",
      "display": "npm install lz-string",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart, lz-string",
      "display": "const LZString = require('lz-string');\n\nconst compressed = LZString.compressToUTF16('Hello world!');\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Repository stars, lz-string",
      "display": "4.4K",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "ZIP creation, lz-string",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Gzip compression, lz-string",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Browser byte API, lz-string",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Native role, lz-string",
      "display": "LZ-based text/string encodings for storage and URLs; not interoperable gzip or ZIP.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Host and first-call requirements, lz-string",
      "display": "CommonJS host for this recipe. Browser guide alternatively uses a preloaded LZString global. Output is a string-storage encoding, not gzip.",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project function, lz-string",
      "display": "function compress(input: string) {\n    return LZString.compressToBase64(input)\n        .replace(/\\+/g, `-`) // Convert '+' to '-'\n        .replace(/\\//g, `_`) // Convert '/' to '_'\n        .replace(/=+$/, ``); // Remove ending '='\n}\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project source file, lz-string",
      "display": "packages/docs-theme/src/common/sandbox.ts",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project full_name, lz-string",
      "display": "palantir/blueprint",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project stargazers_count, lz-string",
      "display": "22.2K",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Library name, yauzl",
      "display": "yauzl",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Monthly downloads, yauzl",
      "display": "277.5M",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "License, yauzl",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release, yauzl",
      "display": "3.4.0",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release date, yauzl",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Install, yauzl",
      "display": "npm install yauzl",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart, yauzl",
      "display": "const yauzl = require('yauzl');\n\nyauzl.open('archive.zip', { lazyEntries: true }, (err, zipfile) => {\n  if (err) throw err;\n  zipfile.close();\n});\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Official description, yauzl",
      "display": "yet another unzip library for node",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart source file, yauzl",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Repository stars, yauzl",
      "display": "832",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "ZIP creation, yauzl",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Gzip compression, yauzl",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Browser byte API, yauzl",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Native role, yauzl",
      "display": "Node ZIP reader and streamed DEFLATE decompression, not a compressor/writer.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Host and first-call requirements, yauzl",
      "display": "Supported CommonJS Node host and existing readable ZIP. Opens/reads its directory then closes; entry content extraction has its own stream/error lifecycle.",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project function, yauzl",
      "display": "function _extractZipFiles(source, destination) {\n  return new Promise((resolve, reject) => {\n    let settled = false\n    const done = err => {\n      if (settled) return\n      settled = true\n      if (err) reject(err)\n      else resolve()\n    }\n\n    yauzl.open(source, { lazyEntries: true }, (err, zipfile) => {\n      if (err) return done(err)\n\n      zipfile.on('error', err => done(err))\n      // read all the entries\n      zipfile.readEntry()\n\n      let entryFileCount = 0\n      zipfile.on('entry', entry => {\n        if (FileTypeManager.shouldIgnore(entry.fileName)) {\n          return zipfile.readEntry()\n        }\n\n        let destFile\n        try {\n          destFile = _checkFilePath(entry, destination)\n        } catch (err) {\n          logger.warn({ err, source, destination }, 'skipping bad file path')\n          zipfile.readEntry() // bad path, just skip to the next file\n          return\n        }\n        if (destFile) {\n          // only write files\n          _writeFileEntry(zipfile, entry, destFile, err => {\n            if (err) {\n              OError.tag(err, 'error unzipping file entry', {\n                source,\n                destFile,\n              })\n              zipfile.close() // bail out, stop reading file entries\n              done(new InvalidZipFileError().withCause(err))\n            } else {\n              entryFileCount++\n              zipfile.readEntry() // continue to the next file\n            }\n          })\n        } else {\n          // if it's a directory, continue\n          zipfile.readEntry()\n        }\n      })\n\n      // no more entries to read\n      zipfile.on('end', () => {\n        if (entryFileCount > 0) {\n          done()\n        } else {\n          done(new EmptyZipFileError())\n        }\n      })\n    })\n  })\n}\n",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project source file, yauzl",
      "display": "services/web/app/src/Features/Uploads/ArchiveManager.mjs",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project full_name, yauzl",
      "display": "overleaf/overleaf",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project stargazers_count, yauzl",
      "display": "18.3K",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Library name, jszip",
      "display": "JSZip",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Monthly downloads, jszip",
      "display": "274.1M",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "License, jszip",
      "display": "(MIT OR GPL-3.0-or-later)",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release, jszip",
      "display": "3.10.2",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release date, jszip",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Install, jszip",
      "display": "npm install jszip",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Quickstart, jszip",
      "display": "const JSZip = require('jszip');\n\nconst zip = new JSZip();\nzip.file('hello.txt', 'Hello world!');\nconst compressedZipPromise = zip.generateAsync({ type: 'uint8array', compression: 'DEFLATE' });\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Official description, jszip",
      "display": "Create, read and edit .zip files with JavaScript http://stuartk.com/jszip",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Quickstart source file, jszip",
      "display": "index.d.ts",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Repository stars, jszip",
      "display": "10.4K",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "ZIP creation, jszip",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Gzip compression, jszip",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Browser byte API, jszip",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Native role, jszip",
      "display": "Browser/Node ZIP creation, loading, and editing; STORE or DEFLATE entry compression.",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Host and first-call requirements, jszip",
      "display": "CommonJS host. The first call returns a Promise resolving to Uint8Array; await it inside an async function or attach a then handler. DEFLATE requested explicitly rather than default STORE.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project function, jszip",
      "display": "public static async pack<T extends OutputType>(\n    file: File,\n    type: T,\n    prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType],\n    overrides: readonly IXmlifyedFile[] = [],\n): Promise<OutputByType[T]> {\n    const zip = this.compiler.compile(file, convertPrettifyType(prettify), overrides);\n    return zip.generateAsync({\n        type,\n        mimeType: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n        compression: \"DEFLATE\",\n    });\n}\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project source file, jszip",
      "display": "src/export/packer/packer.ts",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project full_name, jszip",
      "display": "dolanmiu/docx",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project stargazers_count, jszip",
      "display": "6.0K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Library name, archiver",
      "display": "archiver",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Monthly downloads, archiver",
      "display": "261.9M",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "License, archiver",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Package release, archiver",
      "display": "8.0.0",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release date, archiver",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Install, archiver",
      "display": "npm install archiver",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Quickstart, archiver",
      "display": "import fs from 'node:fs';\nimport { ZipArchive } from 'archiver';\n\nconst output = fs.createWriteStream('archive.zip');\nconst archive = new ZipArchive();\noutput.on('error', console.error);\narchive.on('error', console.error);\narchive.pipe(output);\narchive.append('Hello world!', { name: 'hello.txt' });\nawait archive.finalize();\n",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Official description, archiver",
      "display": "a streaming interface for archive generation",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart source file, archiver",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Repository stars, archiver",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "ZIP creation, archiver",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Gzip compression, archiver",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Browser byte API, archiver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Native role, archiver",
      "display": "Node streaming ZIP/TAR archive creation; selected8 uses named ESM archive classes.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Host and first-call requirements, archiver",
      "display": "Node18+ ESM with a writable destination. Destination close/finish indicates flushed output; finalize alone is not represented as destination completion.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project function, archiver",
      "display": "append(content: string | Uint8Array, options: ZipArchiveEntryOptions) {\n    if (this.#error) {\n        throw this.#error;\n    }\n    // A Buffer view over the same memory rather than a copy; archiver only reads, so sharing is safe.\n    const payload = typeof content === \"string\" ? content : asBuffer(content);\n    const size = typeof content === \"string\" ? Buffer.byteLength(content) : content.byteLength;\n    this.#pendingSizes.push(size);\n    this.#queuedBytes += size;\n    // `store` (and `date`) pass straight through: archiver preserves extra\n    // entry-data fields and zip-stream switches to the STORE method when set.\n    this.#archive.append(payload, options);\n}\n",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project source file, archiver",
      "display": "apps/server/src/zip_provider.ts",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project full_name, archiver",
      "display": "TriliumNext/Trilium",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project stargazers_count, archiver",
      "display": "39.0K",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Library name, compression",
      "display": "compression",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Monthly downloads, compression",
      "display": "238.9M",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "License, compression",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Package release, compression",
      "display": "1.8.2",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release date, compression",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Install, compression",
      "display": "npm install compression express",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Quickstart, compression",
      "display": "const express = require('express');\nconst compression = require('compression');\n\nconst app = express();\napp.use(compression());\napp.get('/', (_req, res) => res.send('Hello world!'.repeat(1000)));\napp.listen(3000);\n",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Official description, compression",
      "display": "Node.js compression middleware",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Quickstart source file, compression",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Repository stars, compression",
      "display": "2.8K",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "ZIP creation, compression",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Gzip compression, compression",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Browser byte API, compression",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Native role, compression",
      "display": "Node HTTP response middleware with encoding negotiation and content-type/size filtering, not a standalone byte-returning codec.",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Host and first-call requirements, compression",
      "display": "Node/Express host with port3000 available. Requests must negotiate an accepted encoding; filter, response size, and no-transform determine whether body compression occurs.",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project function, compression",
      "display": "async startHttpServer() {\n  this.app = this.express();\n  const compression = require('compression');\n  this.app.use(\n    compression({\n      filter(req, res) {\n        let type = res.getHeader('Content-Type');\n\n        if (res.getHeader('x-no-compression')) {\n          // don't compress responses with this response header\n          return false;\n        } else if (type && type.indexOf('text/event-stream') > -1) {\n          // don't attempt to compress server sent events\n          return false;\n        } else {\n          return compression.filter(req, res);\n        }\n      },\n    })\n  );\n\n  this.setupHttpServer();\n\n  let options = this.startOptions;\n  options.httpServer = this.httpServer;\n  let liveReloadServer;\n\n  if (options.path) {\n    liveReloadServer = {\n      setupMiddleware() {},\n    };\n  } else {\n    liveReloadServer = new LiveReloadServer({\n      app: this.app,\n      ui: options.ui,\n      watcher: options.watcher,\n      project: options.project,\n      httpServer: options.httpServer,\n    });\n  }\n\n  const config = this.project.config(options.environment);\n  const middlewareOptions = Object.assign({}, options, {\n    rootURL: config.rootURL,\n  });\n\n  await liveReloadServer.setupMiddleware(this.startOptions);\n  await this.processAppMiddlewares(middlewareOptions);\n  await this.processAddonMiddlewares(middlewareOptions);\n\n  return this.listen(options.port, options.host).catch(() => {\n    throw new SilentError(\n      `Could not serve on http://${this.displayHost(options.host)}:${options.port}. ` +\n        `It is either in use or you do not have permission.`\n    );\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project source file, compression",
      "display": "lib/tasks/server/express-server.js",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Project full_name, compression",
      "display": "ember-cli/ember-cli",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Project stargazers_count, compression",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "What, tar",
      "display": "Creates and extracts tar archives in Node.js with an API modeled on the Unix tar command.",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Strength lead, tar",
      "display": "Blocks paths outside the target",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Strength body, tar",
      "display": "Extraction ignores entries that walk up outside the target folder.",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "What, yauzl",
      "display": "Reads ZIP files in Node.js from the central directory that holds each file's metadata.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Strength lead, yauzl",
      "display": "Never buffers whole files",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Strength body, yauzl",
      "display": "Entries stream out without loading whole files into memory.",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Watch out lead, yauzl",
      "display": "Reads only",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Watch out body, yauzl",
      "display": "Create ZIP files with the companion package yazl.",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "Watch out lead, yauzl streams",
      "display": "No streaming unzip",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Watch out body, yauzl streams",
      "display": "Open a file or a buffer rather than a readable stream.",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "What, JSZip",
      "display": "Creates, reads, and edits ZIP files from JavaScript.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "Strength lead, JSZip",
      "display": "Sets compression per file",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Strength body, JSZip",
      "display": "Each file in the archive can set its own DEFLATE compression level.",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Watch out lead, JSZip",
      "display": "Dual license",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Watch out body, JSZip",
      "display": "Choose the MIT license or GPLv3 when using it.",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "What, archiver",
      "display": "Generates archives through a streaming interface.",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "Strength lead, archiver",
      "display": "Sets the compression level",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "Strength body, archiver",
      "display": "The zlib option sets the compression level of a ZIP archive.",
      "asOf": "2026-11-17"
    },
    "F297": {
      "label": "Watch out lead, archiver",
      "display": "Needs error handlers",
      "asOf": "2026-11-17"
    },
    "F298": {
      "label": "Watch out body, archiver",
      "display": "Listen for warning and error events on the archive.",
      "asOf": "2026-11-17"
    },
    "F299": {
      "label": "What, compression",
      "display": "Compresses HTTP response bodies in Node.js with deflate, gzip, or Brotli.",
      "asOf": "2026-11-17"
    },
    "F300": {
      "label": "Strength lead, compression",
      "display": "Accepts zlib options",
      "asOf": "2026-11-17"
    },
    "F301": {
      "label": "Strength body, compression",
      "display": "zlib and Brotli settings pass through the options object.",
      "asOf": "2026-11-17"
    },
    "F302": {
      "label": "Watch out lead, compression",
      "display": "Skips no-transform responses",
      "asOf": "2026-11-17"
    },
    "F303": {
      "label": "Watch out body, compression",
      "display": "Responses with a Cache-Control no-transform header go out uncompressed.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript compression libraries pako fflate lz-string brotli-wasm code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
