# @alloc/stringy

> Stringify a value into a minimal, readable format.

Latest version **0.1.0** (published 2020-03-19) · 0 weekly downloads

## Install

```sh
npm install @alloc/stringy
pnpm add @alloc/stringy
yarn add @alloc/stringy
bun add @alloc/stringy
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-03-19 |
| First published | 2020-03-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aleclarson |

## Links

- npm: https://www.npmjs.com/package/@alloc/stringy
- Repository: https://github.com/alloc/stringy
- Homepage: https://github.com/alloc/stringy#readme
- Issues: https://github.com/alloc/stringy/issues
- npm.io page: https://npm.io/package/@alloc/stringy

## Recent versions

- 0.1.0 (latest) — 2020-03-19

## README

# @alloc/stringy

Stringify a value into a minimal, readable format.

```js
var stringy = require('@alloc/stringy')

function inspect(value) {
  console.log(stringy(value))
}

inspect({
  a: 1,
  b: 2,
})
// a = 1
// b = 2

inspect({
  items: [1, 2, 3],
  count: 3,
})
// items =
//   - 1
//   - 2
//   - 3
// count = 3

inspect({
  user: {
    name: 'Alec',
    age: 23,
  }
})
// user =
//   name = "Alec"
//   age = 23

inspect(function() {
  return 1 + 1
})
// [object Function]
```

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