{"id":17685639,"url":"https://github.com/ghaiklor/node-print-message","last_synced_at":"2025-07-27T14:40:17.284Z","repository":{"id":27492012,"uuid":"30972170","full_name":"ghaiklor/node-print-message","owner":"ghaiklor","description":"Node.js module for printing out beautiful messages in console","archived":true,"fork":false,"pushed_at":"2025-02-19T14:57:46.000Z","size":697,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T06:17:19.114Z","etag":null,"topics":["beautiful-messages","border","console","javascript","nodejs"],"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/ghaiklor.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":"2015-02-18T15:46:13.000Z","updated_at":"2025-06-18T09:38:57.000Z","dependencies_parsed_at":"2023-01-14T06:52:34.148Z","dependency_job_id":"8258e009-762b-4b68-b587-a591476a1066","html_url":"https://github.com/ghaiklor/node-print-message","commit_stats":{"total_commits":236,"total_committers":6,"mean_commits":"39.333333333333336","dds":0.6144067796610169,"last_synced_commit":"6b8e9bbc5c774b32ae28929e99a2a607409c9b41"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ghaiklor/node-print-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaiklor%2Fnode-print-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaiklor%2Fnode-print-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaiklor%2Fnode-print-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaiklor%2Fnode-print-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghaiklor","download_url":"https://codeload.github.com/ghaiklor/node-print-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaiklor%2Fnode-print-message/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266814510,"owners_count":23988553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["beautiful-messages","border","console","javascript","nodejs"],"created_at":"2024-10-24T10:28:31.657Z","updated_at":"2025-07-27T14:40:17.230Z","avatar_url":"https://github.com/ghaiklor.png","language":"JavaScript","readme":"# print-message\n\n![Travis (.org)](https://img.shields.io/travis/ghaiklor/node-print-message)\n![Codecov](https://img.shields.io/codecov/c/github/ghaiklor/node-print-message)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/print-message)\n![npm](https://img.shields.io/npm/dm/print-message)\n![npm](https://img.shields.io/npm/dt/print-message)\n![NPM](https://img.shields.io/npm/l/print-message)\n\n[![GitHub followers](https://img.shields.io/github/followers/ghaiklor.svg?label=Follow\u0026style=social)](https://github.com/ghaiklor)\n[![Twitter Follow](https://img.shields.io/twitter/follow/ghaiklor.svg?label=Follow\u0026style=social)](https://twitter.com/ghaiklor)\n\nNode.js module for printing out beautiful messages in console.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/3625244/61977223-8d5cde00-aff6-11e9-9c66-87416e9f4aef.gif\" alt=\"node-print-message demo\" width=\"400\"/\u003e\n\n## Installation\n\nInstall `print-message` module:\n\n```bash\nnpm install --save print-message\n```\n\n## Getting Started\n\nRequire `print-message` module and call a function:\n\n```javascript\nconst printMessage = require('print-message');\n\nprintMessage(['Hello, everyone']);\n```\n\n## Options\n\nYou can set your own options for border.\n\n```javascript\nconst printMessage = require('print-message');\n\nprintMessage([\n    \"You can set your own options for border\",\n    \"Options below is default options\"\n], {\n    border: true, // Enable border\n    color: 'default', // Default text color from console\n    borderColor: 'yellow', // Border color is yellow\n    borderSymbol: '─', // Symbol that uses for border\n    sideSymbol: '│', // Symbol that uses for side separators\n    leftTopSymbol: '┌', // Symbol that uses for left top corner\n    leftBottomSymbol: '└', // Symbol that uses for left bottom corner\n    rightTopSymbol: '┐', // Symbol that uses for right top corner\n    rightBottomSymbol: '┘', // Symbol that uses for right bottom corner\n    marginTop: 0, // Margin before border is begins\n    marginBottom: 0, // Margin after border is ends\n    paddingTop: 0, // Padding after border begins\n    paddingBottom: 0, // Padding before border ends\n    printFn: process.stdout.write.bind(process.stdout) // Custom function for print generated message\n});\n```\n\n## Examples\n\n### Print simple message\n\n```javascript\nconst printMessage = require('print-message');\n\nprintMessage([\n    \"Hello\",\n    \"It's the huge world\",\n    \"But width can be calculated automatically\"\n]);\n```\n\n![examples/simple.js](https://cloud.githubusercontent.com/assets/3625244/6447416/d9d646d8-c11a-11e4-8ffe-7aca05fe9ce5.png)\n\n### Print message with custom options\n\n```javascript\nconst printMessage = require('print-message');\n\nprintMessage(['You can set your own options for border'], {\n    border: true, // Enable border\n    color: 'green', // Text color\n    borderColor: 'blue', // Border color is blue\n    borderSymbol: '│', // Symbol that uses for border\n    sideSymbol: '│', // Symbol that uses for side separators\n    leftTopSymbol: '└', // Symbol for left top corner\n    leftBottomSymbol: '┌', // Symbol for left bottom corner\n    rightTopSymbol: '┘', // Symbol for right top corner\n    rightBottomSymbol: '┐', // Symbol for right bottom corner\n    marginTop: 3, // Margin before border is begins\n    marginBottom: 3, // Margin after border is end\n    paddingTop: 2, // Padding top after border begins\n    paddingBottom: 2, // Padding bottom before border ends\n    printFn: function (message) {\n        // Custom function that accepts generated message as argument and print it\n        process.stdout.write(message);\n    }\n});\n```\n\n![examples/options.js](https://cloud.githubusercontent.com/assets/3625244/6447409/c4d2acae-c11a-11e4-93b7-7465793ba4d4.png)\n\n### Print message without border\n\n```javascript\nconst printMessage = require('print-message');\n\nprintMessage([\n    \"This message will be without border\",\n    \"But you still can set marginTop and marginBottom\"\n], {\n    border: false,\n    marginTop: 3,\n    marginBottom: 3\n});\n```\n\n![examples/withoutBorder.js](https://cloud.githubusercontent.com/assets/3625244/6447427/e818bf3c-c11a-11e4-97f5-5bb33a67349f.png)\n\n## License\n\n[The MIT License (MIT)](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghaiklor%2Fnode-print-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghaiklor%2Fnode-print-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghaiklor%2Fnode-print-message/lists"}