{"id":15373169,"url":"https://github.com/otiai10/too","last_synced_at":"2025-08-18T17:05:48.717Z","repository":{"id":34863200,"uuid":"181588369","full_name":"otiai10/too","owner":"otiai10","description":"Combine multiple commands' stream, keep all foreground and kill all in one Ctrl+C","archived":false,"fork":false,"pushed_at":"2025-04-14T03:50:28.000Z","size":1010,"stargazers_count":11,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T14:21:53.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/too","language":"TypeScript","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/otiai10.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-04-16T01:00:04.000Z","updated_at":"2025-02-24T07:47:48.000Z","dependencies_parsed_at":"2024-07-31T18:54:29.531Z","dependency_job_id":"ccdffbee-8e97-4c8b-b1e2-6f4c91ba5997","html_url":"https://github.com/otiai10/too","commit_stats":{"total_commits":223,"total_committers":3,"mean_commits":74.33333333333333,"dds":0.4260089686098655,"last_synced_commit":"82f087ca091890e747f443587141638ae3f45e15"},"previous_names":["otiai10/too"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/otiai10/too","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Ftoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Ftoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Ftoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Ftoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otiai10","download_url":"https://codeload.github.com/otiai10/too/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Ftoo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027689,"owners_count":24687082,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ctrl-c","kill","multiple-processes","sigint","stderr","stdout"],"created_at":"2024-10-01T13:54:25.866Z","updated_at":"2025-08-18T17:05:48.682Z","avatar_url":"https://github.com/otiai10.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# too\n\n[![Node.js CI](https://github.com/otiai10/too.js/actions/workflows/node.js.yml/badge.svg)](https://github.com/otiai10/too.js/actions/workflows/node.js.yml)\n[![codecov](https://codecov.io/gh/otiai10/too.js/branch/main/graph/badge.svg?token=CAnYtu8IQV)](https://codecov.io/gh/otiai10/too.js)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7d0171c59182875438bf/maintainability)](https://codeclimate.com/github/otiai10/too.js/maintainability)\n[![npm version](https://badge.fury.io/js/too.svg)](https://badge.fury.io/js/too)\n\nThe opposite of `tee` command, combining stdout/stderr from multiple commands and kill them with one signal (Ctrl+C).\n\n```\n-\u003e command 1 stream ─┐\n-\u003e command 2 stream ─┤\n                     └─ stdout/stderr/SIGINT to kill both\n```\n\nIt means, you can write 2 parallel jobs in 1 npm script!!\n\n```js\n// package.json\n{\n    \"scripts\": {\n        \"start\": \"too --cmd 'rails s' --cmd 'webpack'\"\n        // Start server and client HMR in parallel,\n        // and you can kill both by one Ctrl+C!!\n    },\n}\n```\n\n# Why?\n\nSometimes we do that,\n\n```sh\n% nohup rails server \u0026\n% nohup npm start-webpack \u0026\n\n# after you did some work\n\n% pkill rails\n% pkill webpack\n```\n\nI don't wanna do this any more, just wanna run multiple processes and kill them with one `Ctrl+C`!\n\n# Usage\n\n```sh\n% too --cmd 'rails server' --cmd 'npm start-webpack'\n```\n\nThen you will get\n\n```sh\n[0] rails   # Rails log here\n[1] npm     # NPM log here\n\n# And you can kill both by one `Ctrl+C` (SIGINT)\n```\n\n# Too files\n\nOr you can define your tasks on a yaml file\n\n```yaml\n# too.local.yaml\nmain:\n    jobs:\n    - run: rails server\n    - run: npm start-webpack\n```\n\nthen\n\n```sh\n% too ./too.local.yaml\n```\n\n# Install\n\n```sh\n% npm install too\n```\n\n# Issues\n\n- https://github.com/otiai10/too.js/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Ftoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotiai10%2Ftoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Ftoo/lists"}