{"id":20767747,"url":"https://github.com/dmnsgn/value-inspector","last_synced_at":"2026-02-09T17:01:20.485Z","repository":{"id":229919183,"uuid":"778021488","full_name":"dmnsgn/value-inspector","owner":"dmnsgn","description":"Get a string representation of a value or an object. Pretty much like they look in Chrome DevTools.","archived":false,"fork":false,"pushed_at":"2025-08-18T08:45:23.000Z","size":1201,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T08:58:52.962Z","etag":null,"topics":["inspect","inspector","object","prettify","stringify"],"latest_commit_sha":null,"homepage":"https://dmnsgn.github.io/value-inspector/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmnsgn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://paypal.me/dmnsgn","https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3"]}},"created_at":"2024-03-26T23:41:56.000Z","updated_at":"2025-08-18T08:45:26.000Z","dependencies_parsed_at":"2024-03-26T23:46:39.099Z","dependency_job_id":"59bf9acc-bca9-4296-af6c-104bed185469","html_url":"https://github.com/dmnsgn/value-inspector","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"90539035cbe7f2b5ba7c90746d63f6a063e245c7"},"previous_names":["dmnsgn/value-inspector"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dmnsgn/value-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fvalue-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fvalue-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fvalue-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fvalue-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmnsgn","download_url":"https://codeload.github.com/dmnsgn/value-inspector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fvalue-inspector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29273139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inspect","inspector","object","prettify","stringify"],"created_at":"2024-11-17T11:33:15.059Z","updated_at":"2026-02-09T17:01:20.466Z","avatar_url":"https://github.com/dmnsgn.png","language":"JavaScript","funding_links":["https://paypal.me/dmnsgn","https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3"],"categories":[],"sub_categories":[],"readme":"# value-inspector\n\n[![npm version](https://img.shields.io/npm/v/value-inspector)](https://www.npmjs.com/package/value-inspector)\n[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/value-inspector)\n[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/value-inspector)](https://bundlephobia.com/package/value-inspector)\n[![dependencies](https://img.shields.io/librariesio/release/npm/value-inspector)](https://github.com/dmnsgn/value-inspector/blob/main/package.json)\n[![types](https://img.shields.io/npm/types/value-inspector)](https://github.com/microsoft/TypeScript)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org)\n[![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)\n[![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)\n[![license](https://img.shields.io/github/license/dmnsgn/value-inspector)](https://github.com/dmnsgn/value-inspector/blob/main/LICENSE.md)\n\nGet a string representation of a value or an object. Pretty much like they look in Chrome DevTools.\n\n[![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn)\n[![coinbase](https://img.shields.io/badge/donate-coinbase-informational?logo=coinbase)](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)\n[![twitter](https://img.shields.io/twitter/follow/dmnsgn?style=social)](https://twitter.com/dmnsgn)\n\n![](https://raw.githubusercontent.com/dmnsgn/value-inspector/main/screenshot.png)\n\n## Installation\n\n```bash\nnpm install value-inspector\n```\n\n## Usage\n\n```js\nimport inspect from \"value-inspector\";\n\nconst obj = {\n  primitiveNull: null,\n\n  valueUndefined: undefined,\n\n  booleanTrue: true,\n\n  textString: \"a string\",\n  textRegExp: new RegExp(\"$ 🐈\"),\n\n  numberZero: 0,\n  numberOne: 1,\n\n  obj: {\n    zero: 0,\n    one: { two: 2, three: { four: 4 } },\n  },\n\n  fun() {},\n\n  array: [0, 1],\n  arrayTyped: Float32Array.of(0, 1),\n\n  collectionMap: new Map([\n    [0, \"zero\"],\n    [1, \"one\"],\n  ]),\n  collectionSet: new Set([0, 1]),\n  [Symbol(\"bar\")]: \"symbol-bar-value\",\n\n  promise: Promise.resolve(),\n};\n\ninspect(obj);\n\n// =\u003e\n// {\n//   array: (2)[0, 1]\n//   arrayTyped: Float32Array(2)[0, 1]\n//   booleanTrue: true\n//   circularArray: [Circular]\n//   circularObject: [Circular]\n//   collectionMap: [object Map]\n//   collectionSet: [object Set]\n//   fun: [Function: fun]\n//   numberOne: 1\n//   numberZero: 0\n//   obj: {\n//     one: {\n//       three: [object Object],\n//       two: 2\n//     },\n//     zero: 0\n//   }\n//   primitiveNull: null\n//   promise: Promise {}\n//   textRegExp: /\\$ 🐈/\n//   textString: \"a string\"\n//   valueUndefined: undefined\n//   Symbol(bar): \"symbol-bar-value\"\n// }\n```\n\n## API\n\n\u003c!-- api-start --\u003e\n\n## Functions\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#inspect\"\u003einspect(value, [options])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eInspect a value.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\n## Typedefs\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#Options\"\u003eOptions\u003c/a\u003e : \u003ccode\u003eobject\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"inspect\"\u003e\u003c/a\u003e\n\n## inspect(value, [options]) ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nInspect a value.\n\n**Kind**: global function\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - A string representation of a value or an object.\n\n| Param     | Type                             |\n| --------- | -------------------------------- |\n| value     | \u003ccode\u003e\\*\u003c/code\u003e                  |\n| [options] | [\u003ccode\u003eOptions\u003c/code\u003e](#Options) |\n\n\u003ca name=\"Options\"\u003e\u003c/a\u003e\n\n## Options : \u003ccode\u003eobject\u003c/code\u003e\n\n**Kind**: global typedef\n**Properties**\n\n| Name               | Type                | Default                               | Description                                  |\n| ------------------ | ------------------- | ------------------------------------- | -------------------------------------------- |\n| [depth]            | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003e2\u003c/code\u003e                        | Specify levels to expand arrays and objects. |\n| [stringLength]     | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003eNumber.POSITIVE_INFINITY\u003c/code\u003e | Length to truncate strings.                  |\n| [collectionLength] | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003eNumber.POSITIVE_INFINITY\u003c/code\u003e | Length to slice arrays, Map and Set.         |\n| [objectLength]     | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003eNumber.POSITIVE_INFINITY\u003c/code\u003e | Length to truncate object keys.              |\n\n\u003c!-- api-end --\u003e\n\n## License\n\nMIT. See [license file](https://github.com/dmnsgn/value-inspector/blob/main/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnsgn%2Fvalue-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmnsgn%2Fvalue-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnsgn%2Fvalue-inspector/lists"}