{"id":24558053,"url":"https://github.com/rse/postproc","last_synced_at":"2025-03-16T19:21:34.906Z","repository":{"id":57328930,"uuid":"246014746","full_name":"rse/postproc","owner":"rse","description":"Post-Process Output of Command","archived":false,"fork":false,"pushed_at":"2022-03-26T17:11:57.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T10:46:48.290Z","etag":null,"topics":["color","post-process","regexp","state","stderr","stdout","timestamp"],"latest_commit_sha":null,"homepage":"http://npmjs.com/postproc","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/rse.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":"2020-03-09T11:13:13.000Z","updated_at":"2022-03-26T17:11:02.000Z","dependencies_parsed_at":"2022-09-16T17:24:09.986Z","dependency_job_id":null,"html_url":"https://github.com/rse/postproc","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fpostproc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fpostproc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fpostproc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fpostproc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rse","download_url":"https://codeload.github.com/rse/postproc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918629,"owners_count":20368745,"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":["color","post-process","regexp","state","stderr","stdout","timestamp"],"created_at":"2025-01-23T05:47:15.944Z","updated_at":"2025-03-16T19:21:34.887Z","avatar_url":"https://github.com/rse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npostproc\n========\n\n**Post-Process Output of Program**\n\n\u003cp/\u003e\n\u003cimg src=\"https://nodei.co/npm/postproc.png?downloads=true\u0026stars=true\" alt=\"\"/\u003e\n\n\u003cp/\u003e\n\u003cimg src=\"https://david-dm.org/rse/postproc.png\" alt=\"\"/\u003e\n\nAbstract\n--------\n\n`postproc`(1) is a small utility for flexibly post-processsing the\n`stdout` and `stderr` outputs of shell commands. It applies one or more\npost-processing rules to each line of output. Each rule can have zero or\nmore conditions and one or more actions. The conditions allow to match\nthe output line with the help of regular expressions or active tags. The\nactions allow to change the output line with the help of replacement\nstrings, can add or delete active tags and can force the repeating or\nstopping of the rules for the current line and can force the ignoring of\nthe current line.\n\nInstallation\n------------\n\n```\n$ npm install -g postproc\n```\n\nUsage\n-----\n\nThe [Unix manual page](https://github.com/rse/postproc/blob/master/postproc.md) contains\ndetailed usage information.\n\nExamples\n--------\n\n```\n# adds timestamp prefix\n$ postproc -e ': \"[%c(blue)%t(YYYY-MM-DD hh:mm:ss.SS)%c(reset)] $0\"' \\\n  npm install\n\n# marks directories as blue\n$ postproc -e '/^(d.+\\s+)(\\S+)$/ : \"$1%c(blue)$2/%c(reset)\"' \\\n  ls -l\n\n# complex state-based marking of subsequent line\n# postproc -e '/complete log/ : #logfile break' \\\n           -e '#logfile : \"%c(bold)$0%c(reset)\" !#logfile' \\\n  npm install not-existing-module\n```\n\nLicense\n-------\n\nCopyright \u0026copy; 2020-2022 Dr. Ralf S. Engelschall (http://engelschall.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frse%2Fpostproc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frse%2Fpostproc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frse%2Fpostproc/lists"}