{"id":21818621,"url":"https://github.com/eliep/truesay","last_synced_at":"2026-03-11T23:02:34.887Z","repository":{"id":57380248,"uuid":"294786804","full_name":"eliep/truesay","owner":"eliep","description":"An image based cowsay alternative","archived":false,"fork":false,"pushed_at":"2025-07-01T21:42:22.000Z","size":489,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T22:25:24.058Z","etag":null,"topics":["cli","shell"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/eliep.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":"2020-09-11T18:55:23.000Z","updated_at":"2025-07-01T21:41:19.000Z","dependencies_parsed_at":"2022-08-28T22:00:18.909Z","dependency_job_id":null,"html_url":"https://github.com/eliep/truesay","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eliep/truesay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliep%2Ftruesay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliep%2Ftruesay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliep%2Ftruesay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliep%2Ftruesay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliep","download_url":"https://codeload.github.com/eliep/truesay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliep%2Ftruesay/sbom","scorecard":{"id":372695,"data":{"date":"2025-08-11","repo":{"name":"github.com/eliep/truesay","commit":"0981c8f0809edd5e7368784f720c77de9ffd55ae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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":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":"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":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/eliep/truesay/npm-publish.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-18T13:22:37.008Z","repository_id":57380248,"created_at":"2025-08-18T13:22:37.008Z","updated_at":"2025-08-18T13:22:37.008Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30406400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: 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","shell"],"created_at":"2024-11-27T16:14:00.589Z","updated_at":"2026-03-11T23:02:34.880Z","avatar_url":"https://github.com/eliep.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# truesay\n\n![CI](https://github.com/eliep/truesay/workflows/CI/badge.svg) \n![npm](https://github.com/eliep/truesay/workflows/publish/badge.svg)\n\n`truesay` is a command line utility displaying a text alongside an image \nin your terminal. `truesay` render the image with UTF-8 character and ANSI\nescape code.\n\n![truesay screenshot](./screenshot-lucca.png?raw=true)\n\n## Installation\n\n```bash\n\u003e npm install -g truesay\n```\n\n## Usage\n\n```bash\n\u003e truesay \u003cpath-to-image-or-directory\u003e [options]\n\u003e fortune | truesay \u003cpath-to-image-or-directory\u003e [options]\n```\n\n### Options\n\nOption | Description\n-------| -------------\n`-t, --text` | Text to say. If omitted, stdin is used\n`-b, --box` | Text box style: `round` (default), `single`, `double`, `singleDouble`, `doubleSingle`, `classic`, `none`\n`-c, --background-color` | Background color used to simulate image transparency (`#rrggbb` format)\n`-w, --width` | Width (default: terminal width minus margin left and right)\n`-p, --position` | Text box position: `top` (default) or `right`\n`-r, --resolution` | Image resolution: `high` (default, 1 pixel is half a character) or `low` (1 pixel is 2 characters wide)'\n`-P, --padding` | Padding between art and text (default: `0`)\n`-T, --margin-top` | Top margin in pixel (default: `1`)\n`-R, --margin-right` | Right margin in pixel (default: `1`)\n`-B, --margin-bottom` | Bottom margin in pixel (default: `0`)\n`-L, --margin-left` | Left margin in pixel (default: `1`)\n\n### Image format and resolution\n`truesay` has one mandatory parameter which is an image path. \nThis path can be absolute or relative and must point to either an image file \n(*gif*, *jpg* or *png*) or a directory containing at least one image file.\n\n#### Image format\nThere's only three formats accepted for the image: *gif*, *jpg* and *png*. \n\n#### Random pick in directory\nIf the image path is a directory, `truesay` will recursively list all files in\nthat directory, keep only the image files and choose among these one to display at random.  \n\n#### Image resolution\nThere are two resolutions for the image rendering, available via the `-r` option:\n\n- *high* (default): in high resolution, each image pixel is rendered by half a character.\n- *low*: in low resolution, each image pixel is rendered by two characters.\n\nIn practice, low resolution rendering take twice the space of high resolution \nfor the same image.\n\n#### Transparency and background option:\nSome image formats like `png` allow pixel to be transparent.\n\nBy default: \n\n- if a pixel is fully transparent, `truesay` will ignore its rgb value,\n- if a pixel is semi transparent, `truesay` will ignore its transparency value.\n\nHowever, to better handle semi transparent pixel, \nit's possible to use the `-c` option to pass the terminal background color \n(in `#rrggbb` format). \n`truesay` will then use this color to emulate transparency \nby computing the rendering color of semi transparent pixel.\n\n```bash\n\u003e fortune | truesay distro/32/tux -c '#2c3440'\n```\n\nBelow a comparison with and without the `-c` option:\n\n![truesay screenshot](./screenshot-bg.png?raw=true)\n\n### Text input\nBy default, `truesay` reads its text input from `stdin` but \nthis can be overridden by setting the `-t` option to display a given text:\n\n ```bash\n \u003e echo 'Hello world!' | truesay games/link # diplay 'Hello world!' from stdin\n \u003e truesay games/link -t 'Hello world!'     # diplay 'Hello world!' from -t option\n \u003e fortune | truesay games/link             # diplay a random fortune\n ```\n\n### Text position\nThe `-p` option allows to control the text position relative to the image. \nBy default, the text is on top of the image (`-p top`), \nbut it can also be displayed next to this image (`-p right`)\n\n```bash\n\u003e truesay games/link -t 'Hello world!' -p right\n```\n\n### Width, margin and padding \n\n#### Width\nBy default, `truesay` uses all the horizontal space available \nto display it's output. By using the width option `-w`, \nit's possible to constrain the output to a given width (expressed in character). \n  \n```bash\n\u003e truesay games/link -t 'Hello world!' -w 80\n```\n\nThe given width includes the space available for the box, the text, \nand the right and left margin (see below). \n\n#### Margin\n`truesay` has 4 margin options to add extra space around its output,\none for each direction: `-T` (top), `-R` (right), `-B` (bottom), `-L` (left).\nFor example, the above command will add one blank line \nbefore the text box and one blank column to the left of the image and text box:\n\n```bash\n\u003e truesay games/link -t 'Hello world!' -T 1 -L 1\n```\n\n#### Padding\nThe padding option `-P` allows to add some extra space \nbetween the text box and the image:\n\n```bash\n\u003e truesay games/link -t 'Hello world!' -P 1 -p right\n```\n \n### Box style\nThe box style can be set with the `-b` option, 6 styles are available to choose from: \n\n``` \n╭───────╮\n│ round │\n╰───────╯\n┌────────┐\n│ single │\n└────────┘\n╔════════╗\n║ double ║\n╚════════╝\n╓──────────────╖\n║ singleDouble ║\n╙──────────────╜\n╒══════════════╕\n│ doubleSingle │\n╘══════════════╛\n+---------+\n| classic |\n+---------+\n```\n\n`-b` option also accepts two special values:\n\n- `none`: disable text boxing,\n- `colors`: the first 8 terminal colors are printed under the text\n\n\n![truesay screenshot](./screenshot-cobra.png?raw=true)\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliep%2Ftruesay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliep%2Ftruesay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliep%2Ftruesay/lists"}