{"id":15767918,"url":"https://github.com/bubkoo/on-new-line","last_synced_at":"2025-08-01T12:07:04.889Z","repository":{"id":57314417,"uuid":"53667876","full_name":"bubkoo/on-new-line","owner":"bubkoo","description":"Hijacks NodeJS Stream and emits events when newline(s) written to the output.","archived":false,"fork":false,"pushed_at":"2016-04-16T08:22:04.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-04T13:42:18.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bubkoo.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":"2016-03-11T13:11:21.000Z","updated_at":"2020-10-14T02:14:34.000Z","dependencies_parsed_at":"2022-09-20T23:21:17.940Z","dependency_job_id":null,"html_url":"https://github.com/bubkoo/on-new-line","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/bubkoo%2Fon-new-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fon-new-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fon-new-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Fon-new-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubkoo","download_url":"https://codeload.github.com/bubkoo/on-new-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458009,"owners_count":20780678,"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-04T13:41:46.790Z","updated_at":"2025-03-31T11:14:33.648Z","avatar_url":"https://github.com/bubkoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# on-new-line\n\n\u003e Hijacks NodeJS Stream and emits events when newline(s) written to the output.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/bubkoo/on-new-line/blob/master/LICENSE)\n[![npm:](https://img.shields.io/npm/v/on-new-line.svg?style=flat-square)](https://www.npmjs.com/packages/on-new-line)\n \n\n## Install\n\n```\n$ npm install on-new-line --save\n```\n\n## Usage\n\n```js\nrequire('on-new-line')(stream); // Any type of NodeJS stream, such as: filestream, process.stdout etc.\n\n// emitted on every newline detected\nstream.on('newline', function() {\n\n});\n\n// emitted before data written to the output. \nstream.on('before:newlines', function(lineCount) {\n\n});\n\n// emitted after data written to the output. \nstream.on('after:newlines', function(lineCount) {\n\n});\n\n```\n\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/bubkoo/on-new-line/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fon-new-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubkoo%2Fon-new-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Fon-new-line/lists"}