{"id":44971269,"url":"https://github.com/martinusso/zx","last_synced_at":"2026-02-18T15:33:13.792Z","repository":{"id":57605515,"uuid":"230451465","full_name":"martinusso/zx","owner":"martinusso","description":"zx is a set of handy commands to make some daily tasks easier","archived":false,"fork":false,"pushed_at":"2023-02-23T00:49:58.000Z","size":50,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T04:43:56.280Z","etag":null,"topics":["cli","command-line","command-line-tool","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/martinusso.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":"2019-12-27T13:46:59.000Z","updated_at":"2022-06-02T23:33:45.000Z","dependencies_parsed_at":"2024-06-20T04:10:08.665Z","dependency_job_id":null,"html_url":"https://github.com/martinusso/zx","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/martinusso/zx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinusso%2Fzx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinusso%2Fzx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinusso%2Fzx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinusso%2Fzx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinusso","download_url":"https://codeload.github.com/martinusso/zx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinusso%2Fzx/sbom","scorecard":{"id":622028,"data":{"date":"2025-08-11","repo":{"name":"github.com/martinusso/zx","commit":"01de65ca15350d8d0ebf130edb614f9642161288"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2020-0015 / GHSA-5rcv-m4m3-hfh7","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T05:25:24.968Z","repository_id":57605515,"created_at":"2025-08-21T05:25:24.968Z","updated_at":"2025-08-21T05:25:24.968Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29583918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","command-line","command-line-tool","go"],"created_at":"2026-02-18T15:33:13.717Z","updated_at":"2026-02-18T15:33:13.777Z","avatar_url":"https://github.com/martinusso.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zx\n\nzx is a set of handy commands to make some daily tasks easier.\n\n[![Circle CI](https://circleci.com/gh/martinusso/zx/tree/master.svg?style=shield\u0026circle-token=:circle-token)](https://circleci.com/gh/martinusso/zx/tree/master)\n[![Build Status](https://travis-ci.org/martinusso/zx.svg?branch=master)](https://travis-ci.org/martinusso/zx)\n[![Coverage Status](https://coveralls.io/repos/github/martinusso/zx/badge.svg?branch=master)](https://coveralls.io/github/martinusso/zx?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/martinusso/zx)](https://goreportcard.com/report/github.com/martinusso/zx)\n\n## Installing\n\n### Linux\n\n##### Prerequisites\n\n- Check that Go is installed correctly\n- `curl` or `wget` should be installed\n- `git` should be installed\n- Copying to the Clipboard requires `xclip` or `xsel` command to be installed\n\n#### Basic Installation\n\n**zx** is installed by running one of the following commands in your terminal.\n\n##### via curl\n\n```\nsh -c \"$(curl -fsSL https://raw.githubusercontent.com/martinusso/zx/master/install.sh)\"\n```\n##### via wget\n\n```\nsh -c \"$(wget -O- https://raw.githubusercontent.com/martinusso/zx/master/install.sh)\"\n```\n\nAs an alternative, you can first download the install script and run it afterwards:\n\n```\nwget https://raw.githubusercontent.com/martinusso/zx/master/install.sh\nsh install.sh\n```\n\n#### Using git\n\nAlternatively, you can \"git clone\" this repository to any directory and run install command.\n\n```\ngit clone --depth 1 https://github.com/martinusso/zx.git\ncd zx\nmake install\n```\n## Commands\n\n### info\n\n```\n~ zx info\nzx is a set of handy commands to make some daily tasks easier.\nversion: v0.3.0\n```\n\n### base64\n\nDecode from Base64 or Encode to Base64.\n\n_Copies automatically the output to the clipboard._\n\n##### Usage:\n\nEncode\n```\n~ zx base64 -e \"zx is a set of handy commands to make some daily tasks easier\"\nenggaXMgYSBzZXQgb2YgaGFuZHkgY29tbWFuZHMgdG8gbWFrZSBzb21lIGRhaWx5IHRhc2tzIGVhc2llcg==\n```\n\nDecode\n```\n~ zx base64 enggaXMgYSBzZXQgb2YgaGFuZHkgY29tbWFuZHMgdG8gbWFrZSBzb21lIGRhaWx5IHRhc2tzIGVhc2llcg==\nzx is a set of handy commands to make some daily tasks easier\n```\n\n##### Aliases:\n  `base64`, `b64`\n\n##### Flags:\n```\n  -d, --decode   Decode from Base64\n  -e, --encode   Encode to Base64\n  -h, --help     help for base64\n```\n\n### cnpj\n\nGenerate a valid CNPJ or Validate if pass a CNPJ as args\n\n_Copies automatically the output to the clipboard._\n\n##### Usage:\n\n```\n~ zx cnpj\n72114610000127\n```\n\n```\n~ zx cnpj 72114610000127\n72114610000127 ➜ valid\n```\n\n```\n~ zx cnpj 72114610000121\n72114610000121 ➜ invalid\n```\n\n##### Flags:\n```\n  -h, --help   help for cnpj\n```\n\n### cpf\n\nGenerate a valid CPF or Validate if pass a CPF as args.\n\n_Copies automatically the output to the clipboard._\n\n##### Usage:\n\n```\n~ zx cpf\n08507460003\n```\n\n```\n~ zx cpf 08507460003\n08507460003 ➜ valid\n```\n\n```\n~ zx cpf 08507460001\n08507460001 ➜ invalid\n```\n\n##### Flags:\n```\n  -h, --help   help for cpf\n```\n\n### exchange\n\nList of foreign currency rates.\n\nReference exchange rate: US dollar (USD).\n\n`BRL: ? (BRL 1 = USD ?), EUR: ? (EUR 1 = USD ?), GBP: ? (GBP 1 = USD ?)`\n\n##### Usage:\n```\n~ zx exchange\nBRL: 4.05 (USD 0.25), EUR: 0.90 (USD 1.12), GBP: 0.76 (USD 1.31)\n```\n\n##### Flags:\n```\n  -h, --help   help for exchange\n```\n\n### ip\n\nIP geolocation.\nIt provides a simple IP to country, state and city mapping. Using db-ip.com/api.\n\n_Copies automatically the output to the clipboard._\n\n##### Usage:\n\n```\n~ zx ip 8.8.8.8\nIP: 8.8.8.8\nContinent: (SA) South America\nCountry: (BR) Brazil\nCity: Vitória (Espírito Santo)\n```\n\n##### Flags:\n```\n  -h, --help   help for ip\n```\n\n\n### jwt\n\nDecode a JWT token.\n\nThis command doesn't validate the token, any well formed JWT can be decoded.\n\n##### Usage:\n```\n~ zx jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c \nHeader:\n{\n  \"alg\": \"HS256\",\n  \"typ\": \"JWT\"\n}\n\nPayload:\n{\n  \"iat\": 1516239022,\n  \"name\": \"John Doe\",\n  \"sub\": \"1234567890\"\n}\n```\n\n##### Flags:\n```\n  -h, --help   help for jwt\n```\n\n### minify\n\nMinify removes whitespace, strips comments, combines files, and optimizes/shortens a few common programming patterns.\nSupported media types: `css`, `html`, `js`, `json`, `svg`, `xml`.\n\nTo confirm the input, press `Ctrl+] ENTER`\n\n_Copies automatically the output to the clipboard._\n\n\n##### Usage:\n```\n~ zx minify css\nType (or paste) here:\nbody {\n   overflow: hidden;\n   background-color: #000000;\n   background-image: url(images/bg.gif);\n   background-repeat: no-repeat;\n}\n^]\nbody{overflow:hidden;background-color:#000;background-image:url(images/bg.gif);background-repeat:no-repeat}\n```\n\n##### Flags:\n```\n  -h, --help          help for minify\n  -t, --type string   Supported media types: css, html, js, json, svg, xml\n```\n\n### password\n\nGenerate a random password.\n\n_Copies automatically the output to the clipboard._\n\n\n##### Usage:\n```\n~ zx password\n0n\u0026r82i$\n```\n\nSpecifying the size:\n\n```\n~ zx password 16\nF@+pqBwkSH1907=2\n\n~ zx password -l=16\nHk^vO4N]#tuI83le\n```\n\nzx password has the `no|N` flag which allows you to remove character types in the password generation.\n\nPassword without lowercase letters:\n\n```\n~ zx password -Nl\nF@+BSH1907=2\n```\n\nPassword without uppercase letters:\n\n```\n~ zx password -Nu\n@+pqwk1907=2\n```\n\nPassword without numbers: \n\n```\n~ zx password -Nn\nF@+pqBwkSH=\n```\n\nPassword without symbols:\n\n```\n~ zx password -Ns\nFpqBwkSH19072\n```\n\nAnd you can even combine several of them\n\n```\n~ zx password -Nsu\npqwk19072\n```\n\n##### Flags:\n```\n  -h, --help         help for password\n  -l, --length int   Password length\n  -N, --no string    Password without [l]owercase, [u]ppercase, [n]umbers, [s]ymbols\n```\n\n### salt\n\nGenerate a random and unique salt and hash for passwords.\n\n##### Usage:\n```\n~ zx salt\nPassword: S[H3/7l1\nHash: efb283bcde5fe42c177558a563c0b998f179ba312777aa36218465ffe35ca3ba115f7e51cff736ca7a783b7d27be2ec072b80a2f6c817139ab2b32429a4fcd03\nSalt: 6e034879d4c3e97def89875d23b7a173a438b1611269168d5fcb548cb7676b7b703e82887508bc1224732ef04373b45154760982bd90d7e40a4a5057dafd7c05\n```\n\n```\n~ zx salt MyPassword       \nPassword: MyPassword\nHash: c60bf872599be8327d40d2c29bf5abfec1c78da6870f9c6c83d8a1bb7069dd4fdfee535b5a24d658a1ff085830385a9242ff7f5a51ad9e60542e4b661f582783\nSalt: 4c27d2a1ffc2fda6cb678e917679d39d7cfcaba1d9d207a0d8509c1c02946155071cdd2515aec0fe266e05d84ce1b2d13dd85ad8db0764b55e8e4024e90f2771\n```\n\n##### Flags:\n```\n  -h, --help              help for salt\n  -p, --password string   Password\n```\n\n### uuid\n\nGenerate a random UUID.\n\n_Copies automatically the output to the clipboard._\n\n##### Usage:\n```\n~ zx uuid\nd9ed16f4-f315-44e4-8e57-b00516d73420\n```\n\n##### Flags:\n```\n  -h, --help              help for uuid\n```\n\n## Contributing\n\n- Fork it\n- Download your fork to your PC (git clone https://github.com/your_username/zx \u0026\u0026 cd zx)\n- Create your feature branch (git checkout -b my-new-feature)\n- Make changes and add them (git add .)\n- Commit your changes (git commit -m 'Add some feature')\n- Push to the branch (git push origin my-new-feature)\n- Create new pull request\n\n## License\n\n**zx** is released under the MIT license. See [LICENSE](https://github.com/martinusso/zx/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinusso%2Fzx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinusso%2Fzx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinusso%2Fzx/lists"}