{"id":15456966,"url":"https://github.com/expede/inspector_gadget","last_synced_at":"2026-02-28T15:02:13.335Z","repository":{"id":57507013,"uuid":"77808883","full_name":"expede/inspector_gadget","owner":"expede","description":"Helpers for debugging \u0026 inspecting code flow","archived":false,"fork":false,"pushed_at":"2017-01-02T05:09:55.000Z","size":10,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T01:38:38.343Z","etag":null,"topics":["debug","operator"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/expede.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":"2017-01-02T03:36:30.000Z","updated_at":"2025-02-11T13:58:34.000Z","dependencies_parsed_at":"2022-08-29T20:31:59.442Z","dependency_job_id":null,"html_url":"https://github.com/expede/inspector_gadget","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/expede%2Finspector_gadget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Finspector_gadget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Finspector_gadget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Finspector_gadget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/expede","download_url":"https://codeload.github.com/expede/inspector_gadget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249834789,"owners_count":21331988,"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":["debug","operator"],"created_at":"2024-10-01T22:41:12.093Z","updated_at":"2026-02-28T15:02:13.278Z","avatar_url":"https://github.com/expede.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InspectorGadget\nHelpers for debugging \u0026 inspecting code flow\n\n[![Build Status](https://travis-ci.org/expede/inspector_gadget.svg?branch=master)](https://travis-ci.org/expede/inspector_gadget) [![Inline docs](http://inch-ci.org/github/expede/inspector_gadget.svg?branch=master)](http://inch-ci.org/github/expede/inspector_gadget) [![Deps Status](https://beta.hexfaktor.org/badge/all/github/expede/inspector_gadget.svg)](https://beta.hexfaktor.org/github/expede/inspector_gadget) [![hex.pm version](https://img.shields.io/hexpm/v/inspector_gadget.svg?style=flat)](https://hex.pm/packages/inspector_gadget) [![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](http://hexdocs.pm/inspector_gadget/) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/expede/inspector_gadget/blob/master/LICENSE)\n\n# Quick Start\n\n```elixir\n\ndef deps do\n  [{:inspector_gadget, \"~\u003e 0.2.0\"}]\nend\n```\n\n# Summary\n\n## Inspect Flow\n\n```elixir\nimport InspectorGadget\n1\n|\u003e inspect_flow\n|\u003e fn x -\u003e x + 1 end.()\n|\u003e fn y -\u003e y * 100 end.()\n|\u003e inspect_flow\n#=\u003e 13:34:21.997 [info]  inspect_flow: 1\n#=\u003e 13:34:21.997 [info]  inspect_flow: 200\n```\n\n## Overloaded Pipe\n\n```elixir\nuse InspectorGadget.Pipe\n\n1\n|\u003e fn x -\u003e x + b end.()\n|\u003e fn y -\u003e y * 100 end.()\n|\u003e inspect\n#=\u003e 13:42:24.250 [info]  1 |\u003e fn(x) = 2\n#=\u003e 13:42:24.250 [info]  2 |\u003e fn(y) = 200\n#=\u003e 13:42:24.250 [info]  200 |\u003e inspect = \"200\"\n```\n\nNote that this prints in the order of evaluation, so nested expressions are expected occur in a different sequence than the code\n\n```elixir\n1\n|\u003e fn(x, y) -\u003e x + y end.(\n  6 |\u003e fn z -\u003e z * 10 end.()\n)\n#=\u003e 13:44:02.649 [info]  6 |\u003e fn(z) = 60\n#=\u003e 13:44:02.649 [info]  1 |\u003e fn(x, y) = 61\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpede%2Finspector_gadget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpede%2Finspector_gadget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpede%2Finspector_gadget/lists"}