{"id":13483677,"url":"https://github.com/inspect-js/object-inspect","last_synced_at":"2025-05-14T12:09:07.046Z","repository":{"id":37927308,"uuid":"11683441","full_name":"inspect-js/object-inspect","owner":"inspect-js","description":"string representations of objects in node and the browser","archived":false,"fork":false,"pushed_at":"2025-02-05T01:24:58.000Z","size":326,"stargazers_count":144,"open_issues_count":6,"forks_count":38,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-31T07:34:36.519Z","etag":null,"topics":["browser","inspect","javascript","node","object"],"latest_commit_sha":null,"homepage":"","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/inspect-js.png","metadata":{"files":{"readme":"readme.markdown","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-07-26T10:26:03.000Z","updated_at":"2025-03-13T04:38:23.000Z","dependencies_parsed_at":"2023-10-15T05:30:59.805Z","dependency_job_id":"9e86fca1-78eb-4244-a7d8-b77a68c9eee3","html_url":"https://github.com/inspect-js/object-inspect","commit_stats":{"total_commits":246,"total_committers":9,"mean_commits":"27.333333333333332","dds":"0.23983739837398377","last_synced_commit":"361db0752858a3e195260c54448c1169a96d8a1a"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fobject-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fobject-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fobject-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fobject-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/object-inspect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299831,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["browser","inspect","javascript","node","object"],"created_at":"2024-07-31T17:01:14.077Z","updated_at":"2025-04-11T04:58:04.868Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","readme":"# object-inspect \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\nstring representations of objects in node and the browser\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n# example\n\n## circular\n\n``` js\nvar inspect = require('object-inspect');\nvar obj = { a: 1, b: [3,4] };\nobj.c = obj;\nconsole.log(inspect(obj));\n```\n\n## dom element\n\n``` js\nvar inspect = require('object-inspect');\n\nvar d = document.createElement('div');\nd.setAttribute('id', 'beep');\nd.innerHTML = '\u003cb\u003ewooo\u003c/b\u003e\u003ci\u003eiiiii\u003c/i\u003e';\n\nconsole.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ]));\n```\n\noutput:\n\n```\n[ \u003cdiv id=\"beep\"\u003e...\u003c/div\u003e, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ]\n```\n\n# methods\n\n``` js\nvar inspect = require('object-inspect')\n```\n\n## var s = inspect(obj, opts={})\n\nReturn a string `s` with the string representation of `obj` up to a depth of `opts.depth`.\n\nAdditional options:\n  - `quoteStyle`: must be \"single\" or \"double\", if present. Default `'single'` for strings, `'double'` for HTML elements.\n  - `maxStringLength`: must be `0`, a positive integer, `Infinity`, or `null`, if present. Default `Infinity`.\n  - `customInspect`: When `true`, a custom inspect method function will be invoked (either undere the `util.inspect.custom` symbol, or the `inspect` property). When the string `'symbol'`, only the symbol method will be invoked. Default `true`.\n  - `indent`: must be \"\\t\", `null`, or a positive integer. Default `null`.\n  - `numericSeparator`: must be a boolean, if present. Default `false`. If `true`, all numbers will be printed with numeric separators (eg, `1234.5678` will be printed as `'1_234.567_8'`)\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install object-inspect\n```\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/object-inspect\n[npm-version-svg]: https://versionbadg.es/inspect-js/object-inspect.svg\n[deps-svg]: https://david-dm.org/inspect-js/object-inspect.svg\n[deps-url]: https://david-dm.org/inspect-js/object-inspect\n[dev-deps-svg]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/object-inspect.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/object-inspect.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=object-inspect\n[codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect\n[actions-url]: https://github.com/inspect-js/object-inspect/actions\n","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fobject-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fobject-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fobject-inspect/lists"}