{"id":16842829,"url":"https://github.com/tarunkoyalwar/bninja","last_synced_at":"2025-06-27T07:34:38.402Z","repository":{"id":104075251,"uuid":"519497502","full_name":"tarunKoyalwar/bninja","owner":"tarunKoyalwar","description":"A Handy toolkit containing Cross-platform command line tools for bash/shell/terminal users","archived":false,"fork":false,"pushed_at":"2023-02-11T21:11:08.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T05:53:04.770Z","etag":null,"topics":["bash","command","linux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarunKoyalwar.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}},"created_at":"2022-07-30T11:25:28.000Z","updated_at":"2024-03-09T21:00:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8ebfde1-d878-4bc8-b9ba-b73d76b8763a","html_url":"https://github.com/tarunKoyalwar/bninja","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarunKoyalwar/bninja","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunKoyalwar%2Fbninja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunKoyalwar%2Fbninja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunKoyalwar%2Fbninja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunKoyalwar%2Fbninja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarunKoyalwar","download_url":"https://codeload.github.com/tarunKoyalwar/bninja/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarunKoyalwar%2Fbninja/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262212997,"owners_count":23276029,"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":["bash","command","linux"],"created_at":"2024-10-13T12:48:40.721Z","updated_at":"2025-06-27T07:34:38.376Z","avatar_url":"https://github.com/tarunKoyalwar.png","language":"Go","funding_links":["https://ko-fi.com/B0B4CPU5V"],"categories":[],"sub_categories":[],"readme":"# bninja\n\nbninja is a collection of cross-platform command line tools with some extra features(**clipboard support**) and defaults to improve experience of bash/shell/terminal users.\n\n**Everything is written in Golang hence it can run in Linux,Windows and MacOS.**\n\nAll tools are subcommands of bninja command. These tools are -\n\n\n* [bninja cut](./docs/bninja_cut.md)\t - Similar to GNU cut but better\n* [bninja diff](./docs/bninja_diff.md)\t - Get unique and Common lines of files\n* [bninja dummy](./docs/bninja_dummy.md)\t - Dummy Module to pass data from input source to output \n* [bninja getlen](./docs/bninja_getlen.md)\t - Returns length of the given string\n* [bninja hcut](./docs/bninja_hcut.md)\t - Cut Data horizantally similar to GNU cut but horizantal\n* [bninja html](./docs/bninja_html.md)\t - HTML Encoder/Decoder\n* [bninja json](./docs/bninja_json.md)\t - Format and Colorize JSON\n* [bninja replace](./docs/bninja_replace.md)\t - Match \u0026 Replace Data\n* [bninja sort](./docs/bninja_sort.md)\t - Sort Input data in ascending/descending order\n* [bninja uniq](./docs/bninja_uniq.md)\t - Print Unique lines\n* [bninja url](./docs/bninja_url.md)\t - A Simple URL Encoder and Decoder\n\n\nThe Obvious advantage is that all these commands can read and write from clipboard \u0026 files .Other advantages include less options and default behaviour such as trim spaces from each line.\n\n## Some Commands have extra features than there counterpart UNIX Commands.\n\nFor Example-\n\n1. [Cut](./docs/bninja_cut.md) \n\nSame as GNU cut but delimeter can be more than 1 characters . Skip lines that does not contain delimeter using (--skip) option.\n\n2. [hcut](./docs/bninja_hcut.md)\n\nSimilar to GNU cut but cut data horizantally i.e cut entire document based on delimeter and print rows based on user input.\n\n3. [diff](./docs/bninja_diff.md)\n\nCompare two files and get unique lines that are common or belongs to a particular file.\n\n4. [uniq](./docs/bninja_uniq.md)\n\nGet unique lines from input . By default trims extra spaces on each line . (GNU uniq only detects duplicates only if they are adjacent)\n\n5. [replace](./docs/bninja_replace.md)\n\nAn Alternative to **sed** but less of an eyesore. Match and replace strings (NO Syntax, uses options instead of subcommands like /s or /g) . options are similar to replace functions in go or python.\n\n# Installation \n\n- Make Sure you have go installed properly or [install go](https://go.dev/doc/install)\n\n- Install Using go\n```sh\ngo install github.com/tarunKoyalwar/bninja/cmd/bninja@latest\n```\n\nIf you loved this tool . Star / Watch this repo to show support and to not miss any feature updates.\n\n\n# Support\n\nIf you like `bninja` and want to see it improve furthur or want me to create other interesting projects , You can buy me a coffee \n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B4CPU5V)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunkoyalwar%2Fbninja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarunkoyalwar%2Fbninja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarunkoyalwar%2Fbninja/lists"}