# odata-pretty-print

> Pretty Prints a ODATA Request URL

Latest version **1.0.0** (published 2021-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install odata-pretty-print
pnpm add odata-pretty-print
yarn add odata-pretty-print
bun add odata-pretty-print
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-07-21 |
| First published | 2021-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jannis Rosenbaum |
| Maintainers | sinnaj-r |

## Links

- npm: https://www.npmjs.com/package/odata-pretty-print
- npm.io page: https://npm.io/package/odata-pretty-print

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) ^15.12.4
- [@types/object-path](https://npm.io/package/@types/object-path.md) ^0.11.0

## Recent versions

- 1.0.0 (latest) — 2021-07-21

## README

# OData Pretty Print

Pretty print OData Request-URLs.

## Install

Install from the NPM repository using yarn or npm:

```shell
yarn add odata-pretty-print
```

```shell
npm install odata-pretty-print
```

## Example Usage

```js
import { format, print } from 'odata-pretty-print';
//...
const url =
  '$expand=field1($expand=field2($expand=field3;$select=a,b,c);$select=d,e,f)';
const formattedString = format(url);
// OR:
print(url);
```

_Will output something like this_

```

$expand=field1(
  $expand=field2(
    $expand=field3;
    $select=a,b,c
  );
  $select=d,e,f
)
```

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