# inspector-gadget

> preconfigured nodejs util for inspecting, and customizing inspecting

Latest version **1.0.0** (published 2017-04-04) · 0 weekly downloads

## Install

```sh
npm install inspector-gadget
pnpm add inspector-gadget
yarn add inspector-gadget
bun add inspector-gadget
```

## 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.0 |
| Published | 2017-04-04 |
| First published | 2017-03-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | James |
| Maintainers | aretecode |
| Keywords | inspect, helpers, utils, debugging, nodejs, fliphub, flipbox |

## Links

- npm: https://www.npmjs.com/package/inspector-gadget
- Repository: https://github.com/fliphub/fliphub
- Homepage: https://github.com/fliphub/fliphub#readme
- Issues: https://github.com/fliphub/fliphub/issues
- npm.io page: https://npm.io/package/inspector-gadget

## Dependencies (1)

- [javascript-stringify](https://npm.io/package/javascript-stringify.md) ^1.6.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-04-04
- 0.1.4-alpha.17585ee1 (lerna-temp) — 2017-03-23
- 0.1.8 — 2017-04-01
- 0.1.7 — 2017-03-29
- 0.1.5 — 2017-03-23
- 0.1.1 — 2017-03-15
- 0.1.0 — 2017-03-15

## README

# inspector-gadget 🕵🗜⚙

[![NPM version][inspector-gadget-npm-image]][inspector-gadget-npm-url]
[![MIT License][license-image]][license-url]
[![fliphub][gitter-badge]][gitter-url]
[![flipfam][flipfam-image]][flipfam-url]

[inspector-gadget-npm-image]: https://img.shields.io/npm/v/inspector-gadget.svg
[inspector-gadget-npm-url]: https://npmjs.org/package/inspector-gadget
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: https://spdx.org/licenses/MIT
[gitter-badge]: https://img.shields.io/gitter/room/fliphub/pink.svg
[gitter-url]: https://gitter.im/fliphub/Lobby
[flipfam-image]: https://img.shields.io/badge/%F0%9F%8F%97%20%F0%9F%92%A0-flipfam-9659F7.svg
[flipfam-url]: https://www.npmjs.com/package/flipfam


![https://github.com/fliphub/fliphub]( https://cloud.githubusercontent.com/assets/4022631/24534601/e748baf2-1583-11e7-897b-d9707e3bcf53.png)



> preconfigured nodejs util for inspecting, and customizing inspecting

## inspectorGadget 🗜
configure what is exposed when inspecting

```js
const {inspectorGadget} = require('inspector-gadget')
class Eh {
  constructor() {
    this.inspect = inspectorGadget(this, ['property-to-ignore'])
  }
}
```

## inspector 🕵
```js
const {inspector} = require('inspector-gadget')
const inspected = inspector({
  some: {
    super: {
      deep: {
        data: {
          with: {
            colors: function() {
              this.array = ['with inspection with colors pre configured']
            }
          }
        }
      }
    }
  }
})
console.log(inspected)
```

## custom ⚙
```js
const {custom} = require('inspector-gadget')

// disables
custom(false)

// re-enables
custom(true)

// changes to your value, be careful.
custom(() => {})
```

### options
- if it fails to inspect, it will [javascript-stringify](https://www.npmjs.com/package/javascript-stringify)
- second arg is a number, how deep you want to go (default 30)
- 3rd arg is options to override pre-configured [nodejs util inspect options](https://nodejs.org/api/util.html#util_util_inspect_object_options)
- it also exports `util`, for your convenience in destructuring

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