Socket
Socket
Sign inDemoInstall

@visulima/inspector

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visulima/inspector

Inspect utility for Node.js and Browsers.


Version published
Weekly downloads
860
increased by19.94%
Maintainers
0
Weekly downloads
 
Created
Source

visulima inspector

Inspect utility for Node.js and Browsers.


typescript-image npm-image license-image


Daniel Bannert's open source work is supported by the community on GitHub Sponsors


Install

npm install @visulima/inspector
yarn add @visulima/inspector
pnpm add @visulima/inspector

Usage

import { inspect } from "@visulima/inspector";

console.log(inspect({ foo: "bar" })); // { foo: 'bar' }

Circular

import { inspect } from "@visulima/inspector";

const obj = { a: 1, b: [3, 4] };
obj.c = obj;

console.log(inspect(obj)); // { a: 1, b: [ 3, 4 ], c: [Circular] }

API

inspect(input: any, options?: InspectOptions): string

input

Type: any

The input value to inspect.

options

Type: InspectOptions

The options for the inspect function.

options.breakLength

Type: number

Default: Number.POSITIVE_INFINITY

options.customInspect

Type: boolean

Default: true

options.depth

Type: number

Default: 5

The maximum depth to traverse.

options.indent

Type: number | "\t" | undefined

Default: undefined

The indentation to use.

  • object-inspect - string representations of objects in node and the browser
  • loupe - Inspect utility for Node.js and browsers
  • util.inspect

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guidelines.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

License

The visulima inspector is open-sourced software licensed under the MIT

Keywords

FAQs

Package last updated on 04 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc