# openapi-cleaner

> A Node.js module for cleaning OpenAPI documents by removing unused components, reducing file size and improving readability.

Latest version **1.2.0** (published 2024-02-15) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install openapi-cleaner
pnpm add openapi-cleaner
yarn add openapi-cleaner
bun add openapi-cleaner
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2024-02-15 |
| First published | 2024-02-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex |
| Maintainers | fimeo |
| Keywords | openapi, swagger, clean, component, schema |

## Links

- npm: https://www.npmjs.com/package/openapi-cleaner
- npm.io page: https://npm.io/package/openapi-cleaner

## Dependencies (1)

- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2024-02-15
- 1.1.0 — 2024-02-15

## README

# Clean OpenAPI Documents

This module provides a Node.js utility to clean OpenAPI documents by removing unused components. It helps in reducing the file size and improving the readability of the API documents by eliminating clutter.

## Installation

You can install the module using npm:

```bash
npm install openapi-cleaner
```

## Features

Removes unused components from OpenAPI documents.
Supports both JSON and YAML OpenAPI formats.
Easy to integrate into build processes or CI/CD pipelines.


## Usage

After installation, you can use the module to clean your OpenAPI document by running:

```bash
const openapicleaner = require('openapi-cleaner');

openapicleaner.cleanOpenApiFile('openapi.json', 'openapi_clean.json');
```

## Contributing

Contributions are welcome! If you have suggestions for improvements or bug fixes, please open an issue or submit a pull request.

---
_Source: https://npm.io/package/openapi-cleaner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
