---
title: "Bundles IIFE"
description: "Usa los catálogos del SAT directamente en el navegador con bundles IIFE minificados por dominio."
canonical_url: "https://nodecfdi.com/packages/sat-micro-catalogs/browser/iife-bundles"
---

> Index of every page on this site: [llms.txt](https://nodecfdi.com/llms.txt)

Para aplicaciones que no usan un bundler de JavaScript —o donde prefieres cargar los catálogos mediante una etiqueta `<script>`— el paquete incluye **bundles IIFE minificados** (target `ES2020`) separados por dominio en `dist/iife/`.

Cada bundle expone una variable global corta con el prefijo `ncCatalog` para evitar colisiones.

## Bundles disponibles

<table>
<thead>
  <tr>
    <th>
      Archivo
    </th>
    
    <th>
      Variable global (<code>
        window.*
      </code>
      
      )
    </th>
    
    <th align="right">
      Minificado
    </th>
    
    <th align="right">
      Gzip
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        dist/iife/cfdi-40.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogCfdi40
      </code>
    </td>
    
    <td align="right">
      95.43 KB
    </td>
    
    <td align="right">
      <strong>
        11.97 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/nomina.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogNomina
      </code>
    </td>
    
    <td align="right">
      50.01 KB
    </td>
    
    <td align="right">
      <strong>
        8.54 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/ccp-31.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogCcp31
      </code>
    </td>
    
    <td align="right">
      94.37 KB
    </td>
    
    <td align="right">
      <strong>
        13.39 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/ret-20.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogRet20
      </code>
    </td>
    
    <td align="right">
      35.24 KB
    </td>
    
    <td align="right">
      <strong>
        6.19 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/cce-20.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogCce20
      </code>
    </td>
    
    <td align="right">
      14.42 KB
    </td>
    
    <td align="right">
      <strong>
        2.95 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/hyp-10.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogHyp10
      </code>
    </td>
    
    <td align="right">
      6.37 KB
    </td>
    
    <td align="right">
      <strong>
        1.82 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/pagos.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalogPagos
      </code>
    </td>
    
    <td align="right">
      2.53 KB
    </td>
    
    <td align="right">
      <strong>
        1.08 KB
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dist/iife/all.iife.js
      </code>
    </td>
    
    <td>
      <code>
        ncCatalog
      </code>
    </td>
    
    <td align="right">
      549.24 KB
    </td>
    
    <td align="right">
      <strong>
        71.32 KB
      </strong>
    </td>
  </tr>
</tbody>
</table>

<tip>

En la mayoría de las aplicaciones de facturación solo necesitas `cfdi-40.iife.js` (~12 KB gzip). Evita cargar `all.iife.js` en producción a menos que realmente utilices todos los complementos y versiones anteriores.

</tip>

## Ejemplo completo en HTML

Este ejemplo carga únicamente el dominio de CFDI 4.0, llena un `<select>` con los usos de CFDI vigentes y muestra la etiqueta resuelta al cambiar la selección:

```html [index.html]
<!doctype html>
<html lang="es">
  <head>
    <meta charset="utf-8" />
    <title>Catálogos SAT en navegador</title>
  </head>
  <body>
    <label for="uso-cfdi">Uso de CFDI:</label>
    <select id="uso-cfdi"></select>
    <p id="resultado"></p>

    <script src="https://unpkg.com/@nodecfdi/sat-micro-catalogs/dist/iife/cfdi-40.iife.js"></script>
    <script>
      const { cfdi40UsosCfdi } = window.ncCatalogCfdi40;
      const select = document.getElementById('uso-cfdi');
      const resultado = document.getElementById('resultado');

      for (const option of cfdi40UsosCfdi.options({ activeOn: new Date() })) {
        const el = document.createElement('option');
        el.value = option.value;
        el.textContent = option.label;
        select.appendChild(el);
      }

      select.addEventListener('change', () => {
        resultado.textContent = cfdi40UsosCfdi.text(select.value);
      });
    </script>
  </body>
</html>
```

## Ver también

- [CDN y múltiples globales](https://nodecfdi.com/packages/sat-micro-catalogs/browser/cdn-and-globals) para cargar varios dominios a la vez y fijar versiones en CDN.
- [Clase SatCatalog](https://nodecfdi.com/packages/sat-micro-catalogs/api-reference/sat-catalog) para ver todos los métodos disponibles en cada catálogo.

## Sitemap

See the full [sitemap](https://nodecfdi.com/sitemap.md) for all pages.
