{"id":20614001,"url":"https://github.com/evanpatchouli/js-text-chart","last_synced_at":"2026-04-17T23:04:07.474Z","repository":{"id":65698647,"uuid":"597629744","full_name":"Evanpatchouli/js-text-chart","owner":"Evanpatchouli","description":"js-text-chart is a tool to transform a string of a text into a string of the chart of the text.","archived":false,"fork":false,"pushed_at":"2023-07-22T04:13:33.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-23T07:03:49.610Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Evanpatchouli.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":"2023-02-05T05:52:02.000Z","updated_at":"2023-07-21T11:36:27.000Z","dependencies_parsed_at":"2024-11-16T11:11:42.555Z","dependency_job_id":"f0938757-f1ec-40b8-8cf8-f1d2c2fe550f","html_url":"https://github.com/Evanpatchouli/js-text-chart","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"5deb903a1449065f12dbd1b1694e9b712cb1bba8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evanpatchouli%2Fjs-text-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evanpatchouli%2Fjs-text-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evanpatchouli%2Fjs-text-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evanpatchouli%2Fjs-text-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evanpatchouli","download_url":"https://codeload.github.com/Evanpatchouli/js-text-chart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242268636,"owners_count":20100067,"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-11-16T11:11:37.483Z","updated_at":"2026-04-17T23:04:02.403Z","avatar_url":"https://github.com/Evanpatchouli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-text-chart\n\njs-text-chart is a tool to transform a string of a text into a string of the chart of the text.\n\n## Latest Version: 1.0.9\nCompletely fix the import-requrie bug, v1.0.9 is strongly recommended. Besides, evchart and exchart are deprecated, and will be removed since v1.1.0.\n\n**v1.0.8 ~ v1.0.3:**\nBug comes while being imported and required.\n\n**v1.0.2**:\nRefactored by TypeScript, support commonJs require and esmodule import.\n\n**v1.0.1**:\nsupport capital and small letters and natural numbers.\nBesides, only blank and \"-\" are allowed, others will be treated as blank.\n\n## Code Resource\nhttps://github.com/Evanpatchouli/js-text-chart\n\n## Install\n\n```shell\nnpm install js-text-chart\n```\n\n## Useage\n### Code\n\n**CommonJS:**\n``` javascript\nconst JsTextChart = require('js-text-chart');\n\nlet str = \"js-console-chart\";\nlet mode = [ \"close\", \"far\", undefined ];\nlet chart = JsTextChart.convert(str, mode[0]);\nconsole.log(chart);\n```\n\n**ESModule:**\n```javascript\nimport JsTextChart from 'js-text-chart';\n\nlet str = \"js-console-chart\";\nlet mode = [ \"close\", \"far\", undefined ];\nlet chart = JsTextChart.convert(str, mode[0]);\nconsole.log(chart);\n```\n\nThe function **convert** returns you with the chart string, and it takes two params: the first one **str** is must, and the **mode** is not necessary, you can assign it to \"close\", \"far\" or anyelse which will all be treated as default.\n\n### Output\n\n```\n[Running] node \"d:\\Workstation\\js-console-chart\\examples\\demo.js\"\n   _                                               _                      _                   _   \n  (_)                                             | |                    | |                 | |  \n   _  ___  ______   ___   ___   _ __   ___   ___  | |  ___  ______   ___ | |__    __ _  _ __ | |_ \n  | |/ __||______| / __| / _ \\ | '_ \\ / __| / _ \\ | | / _ \\|______| / __|| '_ \\  / _` || '__|| __|\n  | |\\__ \\        | (__ | (_) || | | |\\__ \\| (_) || ||  __/        | (__ | | | || (_| || |   | |_ \n  | ||___/         \\___| \\___/ |_| |_||___/ \\___/ |_| \\___|         \\___||_| |_| \\__,_||_|    \\__|\n _/ |                                                                                             \n|__/                                                                                              \n\n\n\n[Done] exited with code=0 in 0.138 seconds\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanpatchouli%2Fjs-text-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanpatchouli%2Fjs-text-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanpatchouli%2Fjs-text-chart/lists"}