{"id":29377937,"url":"https://github.com/fbongcam/simple-js-terminal","last_synced_at":"2026-01-20T16:53:35.742Z","repository":{"id":302867717,"uuid":"1002648535","full_name":"fbongcam/simple-js-terminal","owner":"fbongcam","description":"Simple Terminal Made in JavaScript","archived":false,"fork":false,"pushed_at":"2025-07-04T14:16:39.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T14:30:41.445Z","etag":null,"topics":["console","environment","javascript","shell","simulator","terminal","unix"],"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/fbongcam.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,"zenodo":null}},"created_at":"2025-06-15T22:53:28.000Z","updated_at":"2025-07-04T14:16:43.000Z","dependencies_parsed_at":"2025-07-04T14:30:47.555Z","dependency_job_id":"6784d665-13fb-44df-bfd2-ca0702c3bba4","html_url":"https://github.com/fbongcam/simple-js-terminal","commit_stats":null,"previous_names":["fbongcam/simple-js-terminal"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fbongcam/simple-js-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbongcam%2Fsimple-js-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbongcam%2Fsimple-js-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbongcam%2Fsimple-js-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbongcam%2Fsimple-js-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbongcam","download_url":"https://codeload.github.com/fbongcam/simple-js-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbongcam%2Fsimple-js-terminal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505788,"owners_count":23618973,"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":["console","environment","javascript","shell","simulator","terminal","unix"],"created_at":"2025-07-10T00:09:43.875Z","updated_at":"2026-01-20T16:53:35.736Z","avatar_url":"https://github.com/fbongcam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🖥️ Simple Terminal Made in JavaScript\n\nA lightweight, embeddable terminal interface written in plain JavaScript. It simulates a command-line experience in the browser, complete with basic commands, command history, blinking cursor, and keyboard input.\n\n![terminal echo hello world](screen.png \"preview\")\n\nThe goal of this project isn't to create a fully working terminal with all features, rather a super simple terminal environment that can be added for fun anywhere, for whatever reason.\n\n## ✨ Features\n\n- Interactive terminal prompt\n- Adding custom commands\n- Command history (with arrow key navigation)\n- Simulated blinking cursor\n- Easily embeddable in any HTML page\n\n### Commands available as of now\n\n\u003cpre\u003ecd, clear, cp, date, echo, help, history, ls, man, mkdir, mv, nano, ping, pwd, rm, rmdir, touch, whoami\u003c/pre\u003e\n\n## 🚀 Getting Started\n\n### 📝 How to use\n\n#### I. Importing script locally\n\n```bash\ngit clone https://github.com/fbongcam/simple-js-terminal.git\n```\n\nCopy **terminal.min.js** from **dist** folder\n\n```js\nimport { Terminal } from \"./terminal.min.js\";\n```\n\n```js\nconst terminal = new Terminal(true);\ndocument.body.appendChild(terminal);\n```\n\n*Note:* document.body can of course be replaced with any element.\n\n#### II. CDN\n\n```js\nimport { Terminal } from \"https://cdn.jsdelivr.net/npm/simple-js-terminal@0.0.4/dist/index.min.js\"\n\ndocument.addEventListener('DOMContentLoaded', () =\u003e {\n\n    const terminal = new Terminal(true);\n    document.body.appendChild(terminal);\n});\n```\n\n#### III. npm\n\n```bash\nnpm install simple-js-terminal\n```\n\n```js\nimport { Terminal } from 'simple-js-terminal';\n\nconst terminal = new Terminal();\n```\n\n## ⚙️ Setup for dev\n\n```bash\ngit clone https://github.com/fbongcam/simple-js-terminal.git\n```\n\n```bash\nnpm install\n```\n\n```bash\nnpm run dev\n```\n\n## 🔨 Build\n\n```bash\nnpm run build\n```\n\nYou will end up with an archive of the newly built **npm package** and a dist folder containing **terminal.min.js**.\n\n### Changelog\n\n- **0.1**\n  - Basic virtual file system\n  - New commands\n    - cd\n    - cp\n    - ls\n    - mkdir\n    - mv\n    - pwd\n    - rm\n    - rmdir\n    - touch\n- **0.0.4**\n  - Tweaked build configuration\n- **0.0.3**\n  - Added page functionality for commands like nano and man\n  - Moved away from shadow DOM for wider browser support\n  - Lots of rewriting\n\n## License\n\nCopyright 2025 fbongcam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbongcam%2Fsimple-js-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbongcam%2Fsimple-js-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbongcam%2Fsimple-js-terminal/lists"}