# @bbgse/inspect

> Inspect utility for Node.js

Latest version **5.3.1** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bbgse/inspect
pnpm add @bbgse/inspect
yarn add @bbgse/inspect
bun add @bbgse/inspect
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.3.1 |
| Published | 2023-11-07 |
| First published | 2023-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 37.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bbgse |
| Maintainers | bbgse |

## Links

- npm: https://www.npmjs.com/package/@bbgse/inspect
- Repository: https://github.com/bbgse/inspect
- Issues: https://github.com/bbgse/inspect/issues
- npm.io page: https://npm.io/package/@bbgse/inspect

## Dependencies (2)

- [colorette](https://npm.io/package/colorette.md) ^2.0.20
- [get-func-name](https://npm.io/package/get-func-name.md) ^2.0.1

## Recent versions

- 5.3.1 (latest) — 2023-11-07
- 5.3.0 — 2023-11-04
- 5.1.1 — 2023-11-01
- 5.1.0 — 2023-11-01
- 5.0.6 — 2023-11-01

## README

# inspect

[![Build](https://github.com/bbgse/inspect/actions/workflows/build.yml/badge.svg)](https://github.com/bbgse/inspect/actions/workflows/build.yml)

`inspect` turns the object you give it into a string. It's similar to Node.js' `util.inspect()` function.

`inspect` was created from a fork of [chaijs/loupe](https://github.com/chaijs/loupe).

## Installation

### Node.js

    $ npm install @bbgse/inspect

## Usage

```js
import inspect from "@bbgse/inspect";
```

```ts
inspect({ foo: "bar" }); // => "{ foo: 'bar' }"
inspect(1); // => '1'
inspect("foo"); // => "'foo'"
inspect([1, 2, 3]); // => '[ 1, 2, 3 ]'
inspect(/Test/g); // => '/Test/g'

// ...
```

## License

### The MIT License (MIT)

Copyright © 2023 `bbgse`

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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