{"id":32621421,"url":"https://github.com/matthewnitschke/disp","last_synced_at":"2026-05-19T14:02:28.933Z","repository":{"id":57212922,"uuid":"105411992","full_name":"matthewnitschke/disp","owner":"matthewnitschke","description":"nodeJS console logging tool","archived":false,"fork":false,"pushed_at":"2018-09-04T01:36:41.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-27T14:39:49.937Z","etag":null,"topics":["cli","console-log","formatting","node"],"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/matthewnitschke.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":"2017-10-01T01:31:24.000Z","updated_at":"2023-02-16T02:26:46.000Z","dependencies_parsed_at":"2022-08-24T21:01:28.219Z","dependency_job_id":null,"html_url":"https://github.com/matthewnitschke/disp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matthewnitschke/disp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewnitschke%2Fdisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewnitschke%2Fdisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewnitschke%2Fdisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewnitschke%2Fdisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewnitschke","download_url":"https://codeload.github.com/matthewnitschke/disp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewnitschke%2Fdisp/sbom","scorecard":{"id":626776,"data":{"date":"2025-08-11","repo":{"name":"github.com/matthewnitschke/disp","commit":"d83f1c79f62e410fe20bc697ec36b9902b992f63"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.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":"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":"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":"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":"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":"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":"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":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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw"],"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-21T06:42:51.535Z","repository_id":57212922,"created_at":"2025-08-21T06:42:51.536Z","updated_at":"2025-08-21T06:42:51.536Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33219376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"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","console-log","formatting","node"],"created_at":"2025-10-30T19:01:12.704Z","updated_at":"2026-05-19T14:02:28.928Z","avatar_url":"https://github.com/matthewnitschke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# disp\n\nA nodejs cli console logging tool library\n\n# Installation\n```\nnpm i disp\nOR\nyarn add disp\n```\n# Usage\n\n```javascript\n\nvar disp = require('disp');\n\nvar text = `This is some text\nThis is another line of text\nYea it's another line again`\n\nconsole.log(disp(text)\n  .justify(\"center\")\n  .box({\n    xPadding: 3,\n    yPadding: 1\n  }))\n  \n// +----------------------------------+\n// |                                  |\n// |         This is some text        |\n// |   This is another line of text   |\n// |    Yea it's another line again   |\n// |                                  |\n// +----------------------------------+\n```\n# Macro Commands\nYou can create macro functions to chain together commonly used styles\n```javascript\ndisp.boxedHeaderTable = function(text){\n  return disp(\"text\")\n    .columns({\n      headers: [\"Header 1\", \"Header 2\"]\n    })\n    .box({\n      borderColor: chalk.red,\n      headerBorder: true\n    })\n}\n\nvar someText = `\na b c\naa bb cc\naaa bbb ccc\n`\n\nconsole.log(disp.boxedHeaderTable(someText));\n```\n\n# Built in plugins\n\n### box\nSurrounds text in a box\n```javascript\nvar text = disp(\"text\").box({\n  xPadding: 1,\n  yPadding: 0,\n  borderColor: chalk.red,\n  cornerChar: \"+\",\n  xChar: \"-\",\n  yChar: \"|\",\n  headerBorder: false\n});\n\nconsole.log(text);\n// +------+\n// | text |\n// +------+\n```\n\n### color\nChanges the color of the text. Designed to be used by the the [chalk](https://github.com/chalk/chalk) library, but any will work.\n```javascript\nconst chalk = require('chalk')\ndisp(\"text\").color(chalk.green, {\n  selector: /([\\s\\S]*)/gm // selects what will be colored\n});\n```\n\n### justify\nAligns the text\n```javascript\nvar text = disp(`\nthis is some text\ntext\nBLERG I AM TEXT\n`).justify(\"center\"); // \"center\" or \"right\"\n\nconsole.log(text)\n// this is some text\n//       text\n//  BLERG I AM TEXT\n```\n\n### columns\nJustifies lines in columns based off of a regex expression\n```javascript\nvar text = disp(`\nc1 c2 column3\nc1 column2 c3\ncolumn1 c2 c3\n`).columns({\n  columnSeparater: /(\\w)+/gm, // each capture group for each line is separated into a column\n  headers: [\"Column 1\", \"Column 2\", \"Column 3\"]\n})\n\nconsole.log(text);\n// Column 1     Column 2     Column 3\n// c1           c2           column3\n// c1           column2      c3\n// column1      c2           c3\n```\n\n### margin\nadds padding to outside of text\n```javascript\nvar text = disp(`\ntext\nis\n`).margin(1, \"auto\") \n// parameter values can be integers or \"auto\", auto will center the text in the terminal window\n\n// css margin rules apply.\n//    One parameter: full border \n//    Two parameters: (y, x)\n//    Four parameters: (top, right, bottom, left)\n\nconsole.log(text)\n//\n//                                                      text   \n//                                                      is   \n//\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewnitschke%2Fdisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewnitschke%2Fdisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewnitschke%2Fdisp/lists"}