open-index/open-npm huggingface dataset:
npm package: @lyo/json-to-pretty-yaml
Description: Browser-compatible version of json-to-pretty-yaml
Latest version: 1.2.2

# @lyo/json-to-pretty-yaml

A browser-compatible version of [json-to-pretty-yaml](https://www.npmjs.com/package/json-to-pretty-yaml) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/json-to-pretty-yaml)](https://www.npmjs.com/package/@lyo/json-to-pretty-yaml)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/json-to-pretty-yaml)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/json-to-pretty-yaml/badge)](https://www.jsdelivr.com/package/npm/@lyo/json-to-pretty-yaml)

## Usage

#### In a browser
```html
<script src="https://cdn.jsdelivr.net/npm/@lyo/json-to-pretty-yaml"></script>

<script>
  jsonToPrettyYaml.stringify(foo);
</script>
```

#### In Node.js

```sh
# Install
npm i @lyo/json-to-pretty-yaml
```

```js
const jsonToPrettyYaml = require('@lyo/json-to-pretty-yaml')

jsonToPrettyYaml.stringify(foo);
```

## Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk