1.0.21 • Published 6 months ago

@visulima/inspector v1.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

7 months ago

1.0.21

6 months ago

1.0.20

7 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

9 months ago

1.0.11

11 months ago

1.0.12

11 months ago

1.0.10

11 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago