# yamlify-object-colors

> Colors preset for yamlify-object

Latest version **1.0.3** (published 2017-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install yamlify-object-colors
pnpm add yamlify-object-colors
yarn add yamlify-object-colors
bun add yamlify-object-colors
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-06-02 |
| First published | 2017-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eugeny Dementev |
| Maintainers | eugeny-dementev |
| Keywords | yaml, yamlify, stringify, formatter, colors, preset, config, console, log, beauty |

## Links

- npm: https://www.npmjs.com/package/yamlify-object-colors
- Repository: https://github.com/eugeny-dementev/yamlify-object-colors
- Homepage: https://github.com/eugeny-dementev/yamlify-object-colors#readme
- Issues: https://github.com/eugeny-dementev/yamlify-object-colors/issues
- npm.io page: https://npm.io/package/yamlify-object-colors

## Dependencies (1)

- [cli-color](https://npm.io/package/cli-color.md) ^1.2.0

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-06-02
- 1.0.2 — 2017-06-02
- 1.0.1 — 2017-06-02
- 1.0.0 — 2017-06-02

## README

# yamlify-object-colors

Colors preset for [yamlify-object](https://github.com/eugeny-dementev/yamlify-object) package

## Install

```
npm install yamlify-object-colors
```

## Usage

``` js
const yamlifyObject = require('yamlify-object');
const yamlifyColors = require('yamlify-object-colors');

const obj = {
  object: {
    number: 1,
    error: new Error('message'),
    date: new Date(0),
    symbol: Symbol('SYMBOL'),
    string: 'string value',
    boolean: true,
    null: null,
    undefined: undefined,
  }
}

const formattedString = yamlifyObject(obj, {
  colors: yamlifyColors,
});

console.log(formattedString);
```

## Example

![Object example](/terminal.png?raw=true "Object formatting example")

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