{"id":16349358,"url":"https://github.com/stevemao/composition-debugger","last_synced_at":"2025-11-11T14:30:19.440Z","repository":{"id":57204949,"uuid":"137163168","full_name":"stevemao/composition-debugger","owner":"stevemao","description":"Set a breakpoint in a composition","archived":false,"fork":false,"pushed_at":"2018-06-13T04:45:37.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T16:05:54.803Z","etag":null,"topics":["compose","composition","debug","debugger","fp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevemao.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-13T04:38:16.000Z","updated_at":"2018-12-13T17:20:51.000Z","dependencies_parsed_at":"2022-09-06T03:00:25.272Z","dependency_job_id":null,"html_url":"https://github.com/stevemao/composition-debugger","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/stevemao%2Fcomposition-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevemao","download_url":"https://codeload.github.com/stevemao/composition-debugger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239590726,"owners_count":19664545,"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":["compose","composition","debug","debugger","fp"],"created_at":"2024-10-11T00:59:19.883Z","updated_at":"2025-11-11T14:30:19.386Z","avatar_url":"https://github.com/stevemao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Problem\n\n```js\nvar dasherize = compose(join('-'), toLower, split(' '), replace(/\\s{2,}/ig, ' '));\n\ndasherize('The world is a vampire');\n// TypeError: Cannot read property 'apply' of undefined\n```\n\nWhat arguments is `toLower` called with?\nWhat does `split(' ')` return?\n\n# Let's `debugger`\n\n```js\n// index.js\nconst cdebugger = require('composition-debugger');\n\nvar dasherize = compose(join('-'), toLower, cdebugger, split(' '), replace(/\\s{2,}/ig, ' '));\n// nodejs will pause after `split(' ')`\n\ndasherize('The world is a vampire');\n```\n\nCheck https://nodejs.org/en/docs/guides/debugging-getting-started/ for details on how to pause on breakpoints.\n\nOne quick way is:\n\n```\nnode inspect index.js\n```\n\n# Alternatives\n\n- [treis](https://github.com/raine/treis)\n- [`tap`](http://ramdajs.com/docs/#tap)\n- [`do`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/do.md)\n- [composition-trace](https://github.com/stevemao/composition-trace)\n\n# Related\n\n- [inspect-curry](https://github.com/stevemao/inspect-curry)\n- [inspect-compose](https://github.com/stevemao/inspect-compose)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevemao%2Fcomposition-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevemao%2Fcomposition-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevemao%2Fcomposition-debugger/lists"}