{"id":49182509,"url":"https://github.com/simple-works/0inspect","last_synced_at":"2026-04-23T02:03:42.821Z","repository":{"id":57681181,"uuid":"471602369","full_name":"simple-works/0inspect","owner":"simple-works","description":"👀 Pretty string representation of object.","archived":false,"fork":false,"pushed_at":"2022-03-29T20:38:01.000Z","size":576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T04:18:27.413Z","etag":null,"topics":["color","console","inspect","javascript","js","log","node-js","nodejs","object","pretty","string","stringify","util-inspect"],"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/simple-works.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-19T05:37:47.000Z","updated_at":"2022-03-29T05:31:47.000Z","dependencies_parsed_at":"2022-09-15T06:11:50.995Z","dependency_job_id":null,"html_url":"https://github.com/simple-works/0inspect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simple-works/0inspect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simple-works","download_url":"https://codeload.github.com/simple-works/0inspect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-works%2F0inspect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32162614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"online","status_checked_at":"2026-04-23T02:00:06.710Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["color","console","inspect","javascript","js","log","node-js","nodejs","object","pretty","string","stringify","util-inspect"],"created_at":"2026-04-23T02:03:31.187Z","updated_at":"2026-04-23T02:03:42.805Z","avatar_url":"https://github.com/simple-works.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👀 0inspect\n\n[![NPM version](https://badge.fury.io/js/0inspect.svg)](https://npmjs.org/package/0inspect)\n\nSimple utility for displaying a pretty eye-friendly colorful representation of an object for inspection purposes 👮.\n\n![Screenshot](./screenshot.jpg?raw=true)\n\n## 📥 Install\n\n```\nnpm i 0inspect\n```\n\n## 🏁 Use\n\n```js\nconst inspect = require(\"0inspect\");\n// or const { inspect, log } = require(\"0inspect\");\n\nconst objString = inspect(someObj);\nconsole.log(objString);\n\n// or shorter\ninspect.log(someObj);\n```\n\n## 📕 API\n\n`inspect(obj?: Any, options?: Object);`\n\n- `obj: Any`: Object to inspect.\n- `options: Object`: Options object.\n  - `depth: Number`: Object nesting depth. _Default: `10`_.\n\n`inspect.log(obj?: Any, options?: Object);`\n\n- Just a wrapper for `console.log(inspect(obj, options))`.\n\n## 🎨 Colors\n\n| Color   | Meaning          |\n| ------- | ---------------- |\n| Green   | Truthy Primitive |\n| Red     | Falsy Primitive  |\n| Cyan    | Full Object      |\n| Yellow  | Empty Object     |\n| Magenta | Function         |\n\nAs this is using [Chalk](https://github.com/chalk) for console colors, the color support control is automatic, but you can still override it this way:\n\n```js\nconst chalk = require(\"chalk\"); // Chalk v4.1.2\nchalk.level = 0; // No color\n```\n\n💡 See: [chalk # chalk.level](https://github.com/chalk/chalk#chalklevel)\n\n## 🔣 Symbols\n\n| Symbol | Meaning          |\n| ------ | ---------------- |\n| ◆      | Truthy Primitive |\n| ◇      | Falsy Primitive  |\n| ●      | Full Object      |\n| ○      | Empty Object     |\n| ◉      | Function         |\n| Ø      | No Class         |\n| →      | Value            |\n\n## 💠 Examples\n\n| Input       | Category         | Output                       | Output Color |\n| ----------- | ---------------- | ---------------------------- | ------------ |\n| `1n`        | Truthy Primitive | `◆ BigInt → 1`               | Green        |\n| `NaN`       | Falsy Primitive  | `◇ Number → NaN`             | Red          |\n| `undefined` | Falsy Primitive  | `◇ Ø → undefined`            | Red          |\n| `{ a:\"\" }`  | Full Object      | `● Object → {1}`             | Cyan         |\n| `{}`        | Empty Object     | `○ Object → {}`              | Yellow       |\n| `() =\u003e \"\"`  | Function         | `◉ Function → (anonymous)()` | Magenta      |\n\n# 📃 License\n\n[MIT](./LICENSE) © [Ambratolm](https://github.com/Ambratolm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-works%2F0inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-works%2F0inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-works%2F0inspect/lists"}