{"id":17680877,"url":"https://github.com/devnote-dev/inspect","last_synced_at":"2025-03-30T19:13:27.404Z","repository":{"id":129823886,"uuid":"416004269","full_name":"devnote-dev/inspect","owner":"devnote-dev","description":"Inspect tool from JS implemented in Dart","archived":false,"fork":false,"pushed_at":"2022-01-01T15:23:25.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T21:37:10.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devnote-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2021-10-11T16:25:44.000Z","updated_at":"2022-01-01T15:23:28.000Z","dependencies_parsed_at":"2023-06-19T10:57:49.169Z","dependency_job_id":null,"html_url":"https://github.com/devnote-dev/inspect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnote-dev%2Finspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnote-dev%2Finspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnote-dev%2Finspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnote-dev%2Finspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnote-dev","download_url":"https://codeload.github.com/devnote-dev/inspect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365645,"owners_count":20765546,"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":[],"created_at":"2024-10-24T09:09:32.740Z","updated_at":"2025-03-30T19:13:27.376Z","avatar_url":"https://github.com/devnote-dev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inspect\nIf you are familiar with JavaScript's `inspect` module then this is essentially an implementation of that in Dart. If you don't, then this package basically parses and formats an object into a readable string (usually used for console related activities). This can be a Dart literal object, a class (custom or built-in), function or type(s). Like the JS module it also has optional colouring (although it should not be used in debug consoles as the colouring does not always output correctly).\n\n## Why use this?\nYou don't have to use this, there are a few bugs with this that are yet to be fixed. This package is for testing purposes and part of me learning Dart (but can be used for other things). There is most likely a better version of this somewhere in the pub which you should use instead.\n\n## Examples\nYou can see a full list of examples by running `dart run` after installing the package, but here's a quick one:\n\n```dart\nimport 'package:inspect.dart';\n\nclass Vector {\n    num x, y;\n\n    Vector(this.x, this.y);\n\n    num mult() =\u003e x * y;\n}\n\nvoid main() {\n    print(inspect(Vector(3, 2)));\n}\n```\n\nOutput:\n```shell\nVector {\n  x: 3;\n  y: 2;\n  mult: \u003cmethod mult()\u003e;\n  Vector: \u003cconstructor Vector()\u003e;\n}\n```\n\nThis repository is managed under the AGPL v3 license.\n\n© 2021-2022 devnote-dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnote-dev%2Finspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnote-dev%2Finspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnote-dev%2Finspect/lists"}