{"id":17736648,"url":"https://github.com/parro-it/ai-log","last_synced_at":"2025-03-31T19:17:12.467Z","repository":{"id":57174766,"uuid":"112651805","full_name":"parro-it/ai-log","owner":"parro-it","description":"Tap into an async iterable pipeline and log all chunks passing through","archived":false,"fork":false,"pushed_at":"2017-12-04T19:34:35.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T07:53:31.522Z","etag":null,"topics":[],"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/parro-it.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-11-30T19:32:26.000Z","updated_at":"2017-11-30T19:33:33.000Z","dependencies_parsed_at":"2022-08-28T21:00:24.142Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/ai-log","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fai-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/ai-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523847,"owners_count":20791444,"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-26T00:23:54.856Z","updated_at":"2025-03-31T19:17:12.435Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-log\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/ai-log/master.svg)](http://travis-ci.org/parro-it/ai-log)\n[![NPM downloads](https://img.shields.io/npm/dt/ai-log.svg)](https://npmjs.org/package/ai-log)\n\n\u003e Tap into an async iterable pipeline and log all chunks passing through\n\n\u003e **_This module is part of\n\u003e [Async iterable fun](https://github.com/parro-it/ai-fun), a complete toolset\n\u003e of modules to work with async iterables._**\n\n## Usage\n\ndescription of the example\n\n```js\nimport log from \"ai-log\";\nimport map from \"ai-map\";\nimport compose from \"compose-function\";\n\nconst double = map.with(n =\u003e n * 2);\nconst add2 = map.with(n =\u003e n + 2);\nconst calculate = compose(\n  log(\"add2 result\"),\n  add2,\n  log(\"double result\"),\n  double\n);\ncalculate([1, 2, 3]);\n```\n\nThis will output\n\n```\n[double result] 2\n[add2 result] 4\n[double result] 4\n[add2 result] 6\n[double result] 6\n[add2 result] 8\n```\n\n## API\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```bash\nnpm install --save ai-log\n```\n\n## See Also\n\n* [`parro-it/ai-fun`](https://github.com/parro-it/ai-fun) - A collection of\n  modules to easy deal with async iterables.\n\n* [`noffle/common-readme`](https://github.com/noffle/common-readme) - « a common\n  readme for node ».\n\n## License\n\nMIT Licensed © 2017 Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fai-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fai-log/lists"}