{"id":22165196,"url":"https://github.com/g1eb/cli-plugin","last_synced_at":"2025-07-26T11:31:54.746Z","repository":{"id":57200082,"uuid":"76195367","full_name":"g1eb/cli-plugin","owner":"g1eb","description":"🖥 CLI plugin for webapps","archived":false,"fork":false,"pushed_at":"2017-02-05T17:41:39.000Z","size":69,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T11:45:07.649Z","etag":null,"topics":["cli","cli-plugin","console","shell","user-interface","vanilla-js"],"latest_commit_sha":null,"homepage":"https://rawgit.com/g1eb/cli-plugin/master/","language":"JavaScript","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/g1eb.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":"2016-12-11T19:38:39.000Z","updated_at":"2023-03-04T04:26:21.000Z","dependencies_parsed_at":"2022-09-12T06:11:55.915Z","dependency_job_id":null,"html_url":"https://github.com/g1eb/cli-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g1eb%2Fcli-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g1eb%2Fcli-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g1eb%2Fcli-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g1eb%2Fcli-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g1eb","download_url":"https://codeload.github.com/g1eb/cli-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227673985,"owners_count":17802303,"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":["cli","cli-plugin","console","shell","user-interface","vanilla-js"],"created_at":"2024-12-02T05:13:46.231Z","updated_at":"2024-12-02T05:13:46.868Z","avatar_url":"https://github.com/g1eb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI Plugin\nThis project is a simple and easy to use command-line interface (CLI) for web applications.  \n\nInspired by minimalistic user interfaces that are rich in functionality.  \nDesigned for simplicity and built to empower.  \nVery light weight.  \n\nFeatures:\n- configurable commands\n- configurable colorschemes\n- keeps history of used commands\n\n## Demo\nClick \u003ca href=\"https://rawgit.com/g1eb/cli-plugin/master/\" target=\"_blank\"\u003ehere\u003c/a\u003e for a live demo.\n\n[\u003cimg src=\"https://raw.githubusercontent.com/g1eb/cli-plugin/master/img/cli-plugin.png\" alt=\"CLI Plugin\"\u003e](https://rawgit.com/g1eb/cli-plugin/master/)\n\n## Install\n\n- Install 'cli-plugin' with bower\n\n```\nbower install cli-plugin\n```\n\n- Install 'cli-plugin' with npm\n\n```\nnpm install cli-plugin\n```\n\n- Or include files directly in your html:\n\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"dist/cli-plugin.min.css\"\u003e\n\u003cscript src=\"dist/cli-plugin.min.js\"\u003e\u003c/script\u003e\n```\n\n### Setup\n\nInitialize cliPlugin using a custom colorscheme/config file.\n\n```\ncliPlugin.init(config);\n```\n\nConfig accepts following properties:\n\n|Property        | Usage           | Default  | Required |\n|:------------- |:-------------|:-----:|:-----:|\n| textColor | text color | #111111 | no |\n| cursorColor | cursor color | #111111 | no |\n| backgroundColor | background color | whitesmoke | no |\n\nFeel free to use hex, rgb(a) or html5 color names :)\n\n### Register commands\n\nRegister your own commands:\n\n```\ncliPlugin.bind('list', function () {\n  cliPlugin.print('\u003cp\u003eitems on the shopping list:\u003c/p\u003e');\n  cliPlugin.print('\u003cul\u003e\u003cli\u003emilk\u003c/li\u003e\u003cli\u003ebacon\u003c/li\u003e\u003cli\u003eeggs\u003c/li\u003e\u003c/ul\u003e');\n});\n```\n\n### Useful functions\n\nUse ```cliPlugin.print(text)``` command to print text on the screen, accepts html.  \n\nUse ```cliPlugin.clear()``` command to clear the screen.\n\n### Example\n\nSee [index.html](https://github.com/g1eb/cli-plugin/blob/master/index.html) for an example implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg1eb%2Fcli-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg1eb%2Fcli-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg1eb%2Fcli-plugin/lists"}