{"id":17492051,"url":"https://github.com/waynechang65/fml-consolelog","last_synced_at":"2025-04-22T20:15:47.530Z","repository":{"id":35051290,"uuid":"200853136","full_name":"WayneChang65/fml-consolelog","owner":"WayneChang65","description":"fml-consolelog is a formatted multi-line and ANSI colors supportted text output function module.","archived":false,"fork":false,"pushed_at":"2024-06-19T02:42:15.000Z","size":990,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T20:15:43.712Z","etag":null,"topics":["ansi-colors","cli","console","console-log","formatted-text","javascript","multi-line","multi-line-text","nodejs","terminal","text"],"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/WayneChang65.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":"2019-08-06T13:05:24.000Z","updated_at":"2023-03-22T05:48:53.000Z","dependencies_parsed_at":"2023-12-05T11:27:16.779Z","dependency_job_id":"44928bd2-b5ca-4cb9-9196-ee3f06b78216","html_url":"https://github.com/WayneChang65/fml-consolelog","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Ffml-consolelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Ffml-consolelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Ffml-consolelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Ffml-consolelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WayneChang65","download_url":"https://codeload.github.com/WayneChang65/fml-consolelog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250316066,"owners_count":21410476,"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":["ansi-colors","cli","console","console-log","formatted-text","javascript","multi-line","multi-line-text","nodejs","terminal","text"],"created_at":"2024-10-19T08:07:15.216Z","updated_at":"2025-04-22T20:15:47.510Z","avatar_url":"https://github.com/WayneChang65.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/@waynechang65/fml-consolelog.svg)](https://www.npmjs.com/package/@waynechang65/fml-consolelog)\n[![npm](https://img.shields.io/npm/dm/@waynechang65/fml-consolelog.svg)](https://www.npmjs.com/package/@waynechang65/fml-consolelog)\n[![Npm package total downloads](https://badgen.net/npm/dt/@waynechang65/fml-consolelog)](https://npmjs.ccom/package/@waynechang65/fml-consolelog)\n[![Build Status](https://travis-ci.com/WayneChang65/fml-consolelog.svg?branch=master)](https://travis-ci.com/WayneChang65/fml-consolelog)\n[![GitHub](https://img.shields.io/github/license/waynechang65/fml-consolelog.svg)](https://github.com/WayneChang65/fml-consolelog/)\n\n# fml-consolelog\n\nfml-consolelog 是一個支援ANSI顏色及格式化的多行文字輸出函式模組。  \n\nfml-consolelog is a formatted multi-line and ANSI colors supportted text output function module.  \n\n![image](https://raw.githubusercontent.com/WayneChang65/fml-consolelog/master/img/disp_demo.png)  \n\n## 前言(Overview)\n\n在大多數伺服器模式的應用程式下，無論除錯或取得簡單的立即性資訊都會使用Console.log這個函式。  \n雖然已經有人寫了不少log之類的函式庫，但仍不符合自己使用，於是自己打造一個簡易的多行文字輸出函式。  \n\nIn most server mode applications, the Console.log function is wildly used regardless of debugging or simple immediate information.\nAlthough someone has written a lot of libraries about log functions, they are still not suitable for me, so I just create a simple multi-line text output function module instead.\n\n## 這模組能做什麼事？ (What can it do ?)\n\n* 支援多種單行或多行的格式化文字輸出\nSupport single or multiple lines text output\n* 支援ANSI 256色輸出\nSupport ANSI 256 Colors text output\n* 支援半型與全型字格式化\nSupport both fullwidth and halfwidth characters\n\n## 如何在您的專案使用？ (How to use it in your project ?)\n\n* 利用 npm 套件進行下載  \nUse npm to install  \n\n```bash\nnpm install @waynechang65/fml-consolelog\n```\n\n* 在您的專案環境中，引用 fml-consolelog模組。  \nInclude @waynechang65/fml-consolelog package in your project\n\n```javascript\nconst fmlog = require('@waynechang65/fml-consolelog').log;\n```\n\n* 接下來，依照欲使用的函式格式填入適當欄位資料即可。  \nAdd programs below in your project  \n\n```javascript\nfmlog('basic_chat',  \n    ['GN:Test Area', '0', 'This is a Test 測試', 'Talking' , 'Wayne Chang', '1234567890']);\n```\n\n## 如何跑範例程式？ (How to run the example ?)\n\n* 從Github下載fml-consolelog專案程式碼。  \nClone fml-consolelog from GitHub\n\n```bash\ngit clone https://github.com/WayneChang65/fml-consolelog.git\n```\n\n* 進入fml-consolelog專案目錄  \nGet into fml-consolelog directory\n\n```bash\ncd fml-consolelog\n```\n\n* 下載跑範例程式所需要的環境組件  \nInstall dependencies in the cloned fml-consolelog folder\n\n```bash\nnpm install\n```\n\n* 透過 npm 直接使用以下指令。(實際範例程式在 ./examples/demo.js)  \nRun it with npm. (the demo example is in ./examples/demo.js)\n\n```bash\nnpm run start\n```\n\n## 基本函式 (Base Methods)\n\n* log(funType, data): 文字輸出函式, Text output function\n\n\u003e funType: 函式格式型態, type of function  \n\u003e data: 欲顯示的資料(字串陣列), text output data(String array data type)  \n\n## 貢獻一己之力 (Contribution)\n\nfml-consolelog 雖然是一個小模組，但本人還是希望這個專案能夠持續進步！若有發現臭蟲(bug)或問題，請幫忙在Issue留言告知詳細情形。  \n歡迎共同開發。歡迎Pull Request，謝謝。:)  \n**★歡迎送PR增加函式輸出格式。**\n\nEven though fml-consolelog is a small project, I hope it can be improving. If there is any issue, please comment and welcome to fork and send Pull Request. Thanks. :)  \n**★Welcome to send PR and add text output patterns.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynechang65%2Ffml-consolelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynechang65%2Ffml-consolelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynechang65%2Ffml-consolelog/lists"}