{"id":18446258,"url":"https://github.com/catdad/plain-text-box-plot","last_synced_at":"2026-04-26T22:31:32.541Z","repository":{"id":57325501,"uuid":"60482498","full_name":"catdad/plain-text-box-plot","owner":"catdad","description":":chart_with_upwards_trend: boxes and whiskers","archived":false,"fork":false,"pushed_at":"2016-06-21T00:35:35.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T23:05:44.443Z","etag":null,"topics":["ascii","boxplot","npm"],"latest_commit_sha":null,"homepage":"","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/catdad.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":"2016-06-05T21:39:03.000Z","updated_at":"2016-06-19T15:32:20.000Z","dependencies_parsed_at":"2022-09-09T08:52:01.761Z","dependency_job_id":null,"html_url":"https://github.com/catdad/plain-text-box-plot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/catdad/plain-text-box-plot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catdad%2Fplain-text-box-plot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catdad%2Fplain-text-box-plot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catdad%2Fplain-text-box-plot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catdad%2Fplain-text-box-plot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catdad","download_url":"https://codeload.github.com/catdad/plain-text-box-plot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catdad%2Fplain-text-box-plot/sbom","scorecard":{"id":267901,"data":{"date":"2025-08-11","repo":{"name":"github.com/catdad/plain-text-box-plot","commit":"58c7dd297b6a80ddb2d8f7d0ea7ae3c74ed6ea82"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/18 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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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"}}]},"last_synced_at":"2025-08-17T12:36:43.145Z","repository_id":57325501,"created_at":"2025-08-17T12:36:43.145Z","updated_at":"2025-08-17T12:36:43.145Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"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":["ascii","boxplot","npm"],"created_at":"2024-11-06T07:08:50.259Z","updated_at":"2026-04-26T22:31:32.524Z","avatar_url":"https://github.com/catdad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plain-text-box-plot\n\n[![Build][1]][2]\n[![Code Climate][5]][6]\n[![Downloads][7]][8]\n[![Version][9]][8]\n[![ISC License][10]][11]\n\n[1]: https://travis-ci.org/catdad/plain-text-box-plot.svg?branch=master\n[2]: https://travis-ci.org/catdad/plain-text-box-plot\n\n[5]: https://codeclimate.com/github/catdad/plain-text-box-plot/badges/gpa.svg\n[6]: https://codeclimate.com/github/catdad/plain-text-box-plot\n\n[7]: https://img.shields.io/npm/dm/plain-text-box-plot.svg\n[8]: https://www.npmjs.com/package/plain-text-box-plot\n[9]: https://img.shields.io/npm/v/plain-text-box-plot.svg\n\n[10]: https://img.shields.io/npm/l/is-gzip-stream.svg\n[11]: http://opensource.org/licenses/ISC\n\nA small Node library that creates box plots in plain text. Great for outputting box plots from CLI tools.\n\n## API\n\n```javascript\nvar ptBox = require('plain-text-box-plot');\n\nvar data = {\n    min: 1,\n    q1: 2,\n    q2: 3,\n    q3: 4,\n    max: 5\n};\n\nvar boxplotString = ptBox(data);\n```\n\nExample output:\n\n```\n         +--------+--------+\n|--------|        |        |--------|\n         +--------+--------+\n```\n\nBy default, the width of the output will be at most 75 characters. (Note: sometimes it can be 74, depending on the data.) You can also set this value with an optional second parameter:\n\n```javascript\nvar ptBox = require('plain-text-box-plot');\n\nvar data = { ... };\n\nvar boxplotString = ptBox(data, 120);\n```\n\nIf you are going to `console.log` it, and would like to match the console width, you can figure that out as such:\n\n```javascript\nvar tty = require('tty');\nvar isatty = tty.isatty(1) \u0026\u0026 tty.isatty(2);\n\nvar width;\n\n// if we are not in a tty session, you don't want to do this\nif (isatty) {\n    width = process.stdout.getWindowSize ?\n        process.stdout.getWindowSize(1)[0] :\n        tty.getWindowSize()[1];\n}\n\nvar ptBox = require('plain-text-box-plot');\n\nvar data = { ... };\nvar boxplotString = ptBox(data, width);\n```\n\n## License\n\n[ISC](http://opensource.org/licenses/ISC)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatdad%2Fplain-text-box-plot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatdad%2Fplain-text-box-plot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatdad%2Fplain-text-box-plot/lists"}