{"id":17790306,"url":"https://github.com/mowtwo/display","last_synced_at":"2025-04-02T01:19:36.175Z","repository":{"id":57303325,"uuid":"323957403","full_name":"mowtwo/Display","owner":"mowtwo","description":"一个简单的基于模板字符串的打印输出库","archived":false,"fork":false,"pushed_at":"2020-12-24T02:56:33.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T05:07:59.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mowtwo.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":"2020-12-23T17:00:22.000Z","updated_at":"2020-12-24T02:56:35.000Z","dependencies_parsed_at":"2022-09-21T01:02:52.129Z","dependency_job_id":null,"html_url":"https://github.com/mowtwo/Display","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mowtwo%2FDisplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mowtwo%2FDisplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mowtwo%2FDisplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mowtwo%2FDisplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mowtwo","download_url":"https://codeload.github.com/mowtwo/Display/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246735514,"owners_count":20825257,"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":[],"created_at":"2024-10-27T10:42:11.700Z","updated_at":"2025-04-02T01:19:36.156Z","avatar_url":"https://github.com/mowtwo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mow-display\n这是一个简单的日志输出库，现在支持最简单的模板输出，并且现在只支持node端的输出\n# 快速使用\n## 安装\n### 使用**npm**\n```bash\nnpm i mow-display\n```\n### 使用GitHub\n```bash\ngit clone https://github.com/mowtwo/Display\n```\n## 使用案例\n### 案例1\n```JavaScript\nconst { Display } = require('mow-display')\nconst display = new Display() //默认使用一个字符串模板 {{content}}\n/**\n * display方法有两种重载，支持直接传入一个替换content的字符串\n * 下面也可以写成：\n * display.display('hello world') \n */\ndisplay.display({\n    content: 'hello world'\n}) \n//输出：hello world\n```\n### 案例2\n```JavaScript\nconst { Display } = require('mow-display')\nconst display = new Display(`[mow-log]:{{content}}|\\t{{date}}`) //自定义模板字符串\ndisplay.display({\n    content: 'hello world',\n    date: String(new Date)\n}) //输出：[mow-log]:hello world|  Thu Dec 24 2020 10:54:27 GMT+0800 (China Standard Time)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmowtwo%2Fdisplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmowtwo%2Fdisplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmowtwo%2Fdisplay/lists"}