PHP 8.2.30
Preview: README.md Size: 1.69 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/swagger-ui-dist/README.md

# Swagger UI Dist
[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)

## Anonymized analytics

SwaggerUI Dist uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`:

```
// package.json
{
  // ...
  "scarfSettings": {
    "enabled": false
  }
  // ...
}
```

Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`.


# API

This module, `swagger-ui-dist`, exposes Swagger-UI's entire dist folder as a dependency-free npm module.
Use `swagger-ui` instead, if you'd like to have npm install dependencies for you.

`SwaggerUIBundle` and `SwaggerUIStandalonePreset` can be imported:
```javascript
  import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist"
```

To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method:

```javascript
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()

// then instantiate server that serves files from the swaggerUiAssetPath
```

For anything else, check the [Swagger-UI](https://github.com/swagger-api/swagger-ui) repository.

Directory Contents

Dirs: 0 × Files: 32

Name Size Perms Modified Actions
530 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
665 B lrw-r--r-- 2026-02-23 15:46:30
Edit Download
628 B lrw-r--r-- 2026-02-23 15:46:30
Edit Download
202 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
734 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
813 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
11.09 KB lrw-r--r-- 2026-02-23 15:45:44
Edit Download
3.83 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
403 B lrw-r--r-- 2026-02-23 15:46:30
Edit Download
3.83 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
55 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
102 B lrw-r--r-- 2026-02-23 15:45:44
Edit Download
1.30 KB lrw-r--r-- 2026-02-23 15:45:44
Edit Download
559 B lrw-r--r-- 2026-02-23 15:46:02
Edit Download
1.69 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
539 B lrw-r--r-- 2026-02-23 15:45:46
Edit Download
1.44 MB lrw-r--r-- 2026-02-23 15:45:50
Edit Download
3.25 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
1.83 MB lrw-r--r-- 2026-02-23 15:46:10
Edit Download
436.27 KB lrw-r--r-- 2026-02-23 15:45:52
Edit Download
1.46 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
1.50 MB lrw-r--r-- 2026-02-23 15:46:14
Edit Download
1.44 MB lrw-r--r-- 2026-02-23 15:46:00
Edit Download
3.25 KB lrw-r--r-- 2026-02-23 15:46:30
Edit Download
1.82 MB lrw-r--r-- 2026-02-23 15:46:20
Edit Download
245.80 KB lrw-r--r-- 2026-02-23 15:46:00
Edit Download
618 B lrw-r--r-- 2026-02-23 15:46:30
Edit Download
322.30 KB lrw-r--r-- 2026-02-23 15:46:22
Edit Download
173.03 KB lrw-r--r-- 2026-02-23 15:45:44
Edit Download
271.17 KB lrw-r--r-- 2026-02-23 15:46:22
Edit Download
343.99 KB lrw-r--r-- 2026-02-23 15:46:02
Edit Download
1.16 MB lrw-r--r-- 2026-02-23 15:46:30
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).