{"id":13678186,"url":"https://github.com/hunghg255/rsbuild-plugin-print","last_synced_at":"2025-07-14T02:32:30.333Z","repository":{"id":207292660,"uuid":"716194070","full_name":"hunghg255/rsbuild-plugin-print","owner":"hunghg255","description":"Rsbuild Plugin Print","archived":false,"fork":false,"pushed_at":"2024-05-03T08:34:05.000Z","size":169,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T20:35:10.319Z","etag":null,"topics":["npm","plugin","print","qrcode","rsbuild"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hunghg255.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":["hunghg255"]}},"created_at":"2023-11-08T16:21:11.000Z","updated_at":"2024-10-31T09:14:16.000Z","dependencies_parsed_at":"2024-01-10T06:35:42.293Z","dependency_job_id":"584666ab-fdf4-4848-ad30-855b7dc6fb50","html_url":"https://github.com/hunghg255/rsbuild-plugin-print","commit_stats":null,"previous_names":["hunghg255/rsbuild-plugin-print"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunghg255%2Frsbuild-plugin-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunghg255%2Frsbuild-plugin-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunghg255%2Frsbuild-plugin-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunghg255%2Frsbuild-plugin-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunghg255","download_url":"https://codeload.github.com/hunghg255/rsbuild-plugin-print/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225942791,"owners_count":17549088,"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","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":["npm","plugin","print","qrcode","rsbuild"],"created_at":"2024-08-02T13:00:50.866Z","updated_at":"2024-11-22T18:15:53.791Z","avatar_url":"https://github.com/hunghg255.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hunghg255"],"categories":["Plugins"],"sub_categories":["Rsbuild Plugins"],"readme":"\u003cp align=\"center\"\u003e\r\n\u003ca href=\"https://www.npmjs.com/package/rsbuild-plugin-print\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\r\n\u003cimg src=\"https://api.iconify.design/bi:plugin.svg?color=%23bbeea0\" alt=\"logo\" width='100'/\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  A plugin print for \u003ca href=\"https://rsbuild.dev/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eRsbuild\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/rsbuild-plugin-print\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://badge.fury.io/js/rsbuild-plugin-print.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/rsbuild-plugin-print\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/rsbuild-plugin-print.svg?logo=npm\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://bundlephobia.com/result?p=rsbuild-plugin-print\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/minzip/rsbuild-plugin-print\" alt=\"Minizip\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/hunghg255/rsbuild-plugin-print/graphs/contributors\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://img.shields.io/badge/all_contributors-1-orange.svg\" alt=\"Contributors\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://github.com/hunghg255/rsbuild-plugin-print/blob/main/LICENSE\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://badgen.net/github/license/hunghg255/rsbuild-plugin-print\" alt=\"License\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n## Install\r\n\r\n```bash\r\nnpm i rsbuild-plugin-print -D\r\n```\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eRsbuild\u003c/summary\u003e\u003cbr\u003e\r\n\r\n```ts\r\n// rsbuild.config.ts\r\nimport { pluginPrint } from 'rsbuild-plugin-print';\r\n\r\nexport default defineConfig({\r\n  plugins: [\r\n    pluginPrint({\r\n      /* options */\r\n    }),\r\n  ],\r\n});\r\n```\r\n\r\nExample: [`playground/`](./playground/)\r\n\r\n\u003cbr\u003e\u003c/details\u003e\r\n\r\n## Options\r\n\r\n```ts\r\nimport type * as kolorist from 'kolorist';\r\n\r\nimport type { Options as BoxenOptions } from 'boxen';\r\n\r\ntype Kolorist = Omit\u003ctypeof kolorist, 'SupportLevel' | 'options'\u003e;\r\n\r\nexport type MessageValue = Omit\u003cBoxenOptions, 'borderStyle'\u003e \u0026 {\r\n  text: string;\r\n  url?: string;\r\n} \u0026 {\r\n  borderStyle?: BoxenOptions['borderStyle'] | 'none';\r\n};\r\n\r\ntype Message =\r\n  | string\r\n  | MessageValue\r\n  | ((\r\n      kolorist: Kolorist,\r\n    ) =\u003e string | MessageValue | Promise\u003cstring | MessageValue | void\u003e);\r\n\r\nexport interface IPluginOptions {\r\n  info?: Message[];\r\n  hostQrcode?: boolean;\r\n}\r\n```\r\n\r\n## Demo\r\n\r\n![demo](./assets/demo.png)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunghg255%2Frsbuild-plugin-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunghg255%2Frsbuild-plugin-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunghg255%2Frsbuild-plugin-print/lists"}