# string-from-object

> neatly formatted, indentation based presentation of js object, handles circular structures, depth levels, + logs with color

Latest version **1.1.2** (published 2018-07-09) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install string-from-object
pnpm add string-from-object
yarn add string-from-object
bun add string-from-object
```

## 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.1.2 |
| Published | 2018-07-09 |
| First published | 2017-11-29 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Leonard Pauli |
| Maintainers | leonardpauli |

## Links

- npm: https://www.npmjs.com/package/string-from-object
- Repository: https://github.com/LeonardPauli/string-from-object
- Homepage: https://github.com/LeonardPauli/string-from-object#readme
- Issues: https://github.com/LeonardPauli/string-from-object/issues
- npm.io page: https://npm.io/package/string-from-object

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0-beta.52

## Recent versions

- 1.1.2 (latest) — 2018-07-09
- 1.1.1 — 2018-06-12
- 1.1.0 — 2018-06-01
- 1.0.4 — 2017-12-17
- 1.0.3 — 2017-11-29
- 1.0.2 — 2017-11-29
- 1.0.1 — 2017-11-29
- 1.0.0 — 2017-11-29

## README

# string-from-object
*neatly formatted, indentation based presentation of js object, handles circular structures, depth levels, + logs with color*

__for usage, see [./module/\_\_tests\_\_](./module/__tests__)__
__`npm i string-from-object`__

```js
import {log} from 'string-from-object'
log({some: {object: ['or', 'value']}})

import strFromObj from 'string-from-object'
console.log(strFromObj(..., {
	depth: 1, indentation: '\t', colors: false,
	filter: ({key})=> key!=='name',
	nameExtractor: obj=> obj.name,
}))
```


### Contribute

Feel free to fork and send PR's :)

Copyright © Leonard Pauli, 2017-2018

Licence: GNU Affero General Public License v3.0 or later.
For commersial / closed-source / custom licencing needs, please contact us.

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