1.0.21 • Published 4 months ago

@visulima/inspector v1.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

typescript-image npm-image license-image



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.

Related

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

typescript-url: https://www.typescriptlang.org/ "TypeScript" "typescript"

1.0.19

5 months ago

1.0.21

4 months ago

1.0.20

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

7 months ago

1.0.11

9 months ago

1.0.12

9 months ago

1.0.10

9 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago