{"id":16349284,"url":"https://github.com/stevemao/composition-trace","last_synced_at":"2025-11-11T13:30:20.866Z","repository":{"id":57204946,"uuid":"90936037","full_name":"stevemao/composition-trace","owner":"stevemao","description":"Impure trace function to see what's going on in a composition","archived":false,"fork":false,"pushed_at":"2017-05-27T04:21:52.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T22:47:06.293Z","etag":null,"topics":["composition","debug","debugger","debugging","debugging-tool","fp","functional-programming"],"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":"2017-05-11T04:04:54.000Z","updated_at":"2018-12-13T17:22:15.000Z","dependencies_parsed_at":"2022-09-06T02:42:53.942Z","dependency_job_id":null,"html_url":"https://github.com/stevemao/composition-trace","commit_stats":null,"previous_names":["stevemao/map-trace"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevemao%2Fcomposition-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevemao","download_url":"https://codeload.github.com/stevemao/composition-trace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239589971,"owners_count":19664390,"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":["composition","debug","debugger","debugging","debugging-tool","fp","functional-programming"],"created_at":"2024-10-11T00:58:46.841Z","updated_at":"2025-11-11T13:30:20.819Z","avatar_url":"https://github.com/stevemao.png","language":"JavaScript","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 `trace`\n\n```js\nconst trace = require('composition-trace');\n\nvar dasherize = compose(join('-'), toLower, trace('after split'), split(' '), replace(/\\s{2,}/ig, ' '));\n// after split [ 'The', 'world', 'is', 'a', 'vampire' ]\n\ndasherize('The world is a vampire');\n```\n\nFor more details, please see https://drboolean.gitbooks.io/mostly-adequate-guide/content/ch5.html#debugging\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\n# Related\n\n- [inspect-curry](https://github.com/stevemao/inspect-curry)\n- [inspect-compose](https://github.com/stevemao/inspect-compose)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevemao%2Fcomposition-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevemao%2Fcomposition-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevemao%2Fcomposition-trace/lists"}