{"id":15113833,"url":"https://github.com/alvarezmauro/styled-printf","last_synced_at":"2026-01-19T04:32:46.690Z","repository":{"id":48787361,"uuid":"374381267","full_name":"alvarezmauro/styled-printf","owner":"alvarezmauro","description":"Do you want to add some styles 🎨 to the output of your bash printf commands? Use this custom script and make the output of that printf look fanzy :bowtie: ","archived":false,"fork":false,"pushed_at":"2021-07-12T08:07:44.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-19T10:05:30.223Z","etag":null,"topics":["bash","bash-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alvarezmauro.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":"2021-06-06T14:28:39.000Z","updated_at":"2021-07-12T07:56:10.000Z","dependencies_parsed_at":"2022-08-31T11:03:55.223Z","dependency_job_id":null,"html_url":"https://github.com/alvarezmauro/styled-printf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alvarezmauro/styled-printf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarezmauro%2Fstyled-printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarezmauro%2Fstyled-printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarezmauro%2Fstyled-printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarezmauro%2Fstyled-printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvarezmauro","download_url":"https://codeload.github.com/alvarezmauro/styled-printf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarezmauro%2Fstyled-printf/sbom","scorecard":{"id":187470,"data":{"date":"2025-08-11","repo":{"name":"github.com/alvarezmauro/styled-printf","commit":"cf99ca438ead15eedf214a9fbc324ac53a5c64e2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarezmauro/styled-printf/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarezmauro/styled-printf/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarezmauro/styled-printf/publish.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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: Apache License 2.0: 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 23 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"}}]},"last_synced_at":"2025-08-16T20:03:41.770Z","repository_id":48787361,"created_at":"2025-08-16T20:03:41.770Z","updated_at":"2025-08-16T20:03:41.770Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bash","bash-script"],"created_at":"2024-09-26T01:23:29.298Z","updated_at":"2026-01-19T04:32:46.666Z","avatar_url":"https://github.com/alvarezmauro.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# styled-printf\n[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000\u0026style=flat-square)](https://github.com/bvanhoekelen/terminal-style/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/npm-auto-version.svg?maxAge=2592000)](https://www.npmjs.com/package/https://www.npmjs.com/package/styled-printf)\n\n\nDo you want to add some styles 🎨 to the output of your bash **printf** commands? Use this custom script and make the output of that **printf** look fanzy :bowtie: \n\n## How install\n\nUsing Yarn\n```Shell\nyarn add styled-printf\n```\n\nUsing NPM:\n```Shell\nnpm i styled-printf\n```\n\n## How to use\n\nThe `styled-printf` command is like `printf` (in fact it's a function wrapping `printf`) that allows you to easily set the text styling, color and background color for the output.\n\n### Usage:\n```Shell\nstyled-printf [-s \u003ctext format\u003e] [--style \u003ctext format\u003e]\n  [-c \u003ccolor\u003e] [--color \u003ccolor\u003e]\n  [-b \u003ccolor\u003e] [-background-color \u003ccolor\u003e]\n  format [argument]\n```\n\n### Options:\n| Option | Description | Values |\n| ------ | --- | --- |\n| `-s` \\| `--style` | Text formatting | `normal` \\| `bold` \\| `dim` \\| `italics` \\| `underline` \\|\u003cbr /\u003e `blink` \\| `reverse` \\| `hidden` \\| `password` |\n| `-c` \\| `--color` | Text color | `default` \\| `white` \\| `black` \\| `red` \\| `green` \\|\u003cbr /\u003e `yellow` \\| `blue` \\| `magenta` \\| `cyan` \\| `gray` \\|\u003cbr /\u003e `light-red` \\| `light-green` \\| `light-yellow` \\|\u003cbr /\u003e `light-blue` \\| `light-magenta` \\| `light-cyan` \\|\u003cbr /\u003e `light-gray` \\| \u003cbr /\u003e\u003cbr /\u003e or a number between`0` and `256` | |\n| `-b` \\| `--background-color` | Background color | `default` \\| `white` \\| `black` \\| `red` \\| `green` \\|\u003cbr /\u003e `yellow` \\| `blue` \\| `magenta` \\| `cyan` \\| `gray` \\|\u003cbr /\u003e `light-red` \\| `light-green` \\| `light-yellow` \\|\u003cbr /\u003e `light-blue` \\| `light-magenta` \\| `light-cyan` \\|\u003cbr /\u003e `light-gray` \\| \u003cbr /\u003e\u003cbr /\u003e or a number between`0` and `256` | |\n\n### Example\n```Shell\nstyled-printf -s bold -c blue -b yellow \"%s\\n\" \"This text is bold, red and has a blue background\"\n```\n\n\u003cimg src=\"https://github.com/alvarezmauro/styled-printf/blob/main/assets/example-output-01.png\" width=450 alt=\"styled-printf output: text 'This text is bold, red and has a blue background' in blue color, bold and yellow background\"\u003e\n\n### Other flags:\n| `-h` \\| `--help` | Display the help documentation |\n| ------- | ------- |\n| `-t` \\| `--test` | Test all the different styles in your bash terminal |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarezmauro%2Fstyled-printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvarezmauro%2Fstyled-printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarezmauro%2Fstyled-printf/lists"}