{"id":15311636,"url":"https://github.com/aslemammad/vite-plugin-terminal","last_synced_at":"2025-10-08T20:32:39.307Z","repository":{"id":105998721,"uuid":"450244906","full_name":"Aslemammad/vite-plugin-terminal","owner":"Aslemammad","description":"Log in the node terminal from the browser","archived":false,"fork":true,"pushed_at":"2022-01-20T21:49:45.000Z","size":638,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-01T02:12:06.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"patak-dev/vite-plugin-terminal","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aslemammad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["patak-dev"]}},"created_at":"2022-01-20T20:16:53.000Z","updated_at":"2022-02-08T09:02:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2e89af9-ab5c-43f7-9623-ff4f889c9aa7","html_url":"https://github.com/Aslemammad/vite-plugin-terminal","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"b6dc0a17f665636d2b1dc43048bb9878b82d20a9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvite-plugin-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvite-plugin-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvite-plugin-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvite-plugin-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aslemammad","download_url":"https://codeload.github.com/Aslemammad/vite-plugin-terminal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877266,"owners_count":16554910,"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-01T08:34:10.579Z","updated_at":"2025-10-08T20:32:33.975Z","avatar_url":"https://github.com/Aslemammad.png","language":null,"funding_links":["https://github.com/sponsors/patak-dev"],"categories":[],"sub_categories":[],"readme":"# vite-plugin-terminal\n\n[![NPM version](https://img.shields.io/npm/v/vite-plugin-terminal?color=a1b858\u0026label=)](https://www.npmjs.com/package/vite-plugin-terminal)\n\nLog in the node terminal from the browser\n\n![](https://github.com/patak-dev/vite-plugin-terminal/blob/76fb5c2656e99a8619986be2bff5c26414273a66/vite-plugin-terminal.png)\n\n[Open a playground online in StackBlitz](https://stackblitz.com/edit/vitejs-vite-c8dfaq?file=main.js\u0026terminal=dev)\n\n## Install\n\n```bash\nnpm i -D vite-plugin-terminal\n```\n\nAdd plugin to your `vite.config.ts`:\n\n```ts\n// vite.config.ts\nimport Terminal from 'vite-plugin-terminal'\n\nexport default {\n  plugins: [\n    Terminal()\n  ]\n}\n```\n\n## Usage\n\nIn your source code import `terminal`, and use it like you do with `console.log`.\n\n```\nimport { terminal } from 'virtual:terminal'\n\nterminal.log('Hey terminal! A message from the browser')\n```\n\nThe terminal log calls will be removed when building the app.\n\n## API\n\nSupported methods:\n- `terminal.log(obj)`\n- `terminal.info(obj)`\n- `terminal.warn(obj)`\n- `terminal.error(obj)`\n- `terminal.assert(assertion, obj)`\n\n## Credits\n\n- Original idea from [Domenic Elm](https://twitter.com/elmd_)\n- Project setup from [@antfu's vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect)\n- Bundling by [unbuild](https://github.com/unjs/unbuild)\n- Strip functions during build uses [rollup-plugin-strip](https://github.com/rollup/plugins/tree/master/packages/strip)\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://patak.dev/sponsors.svg\"\u003e\n    \u003cimg src=\"https://patak.dev/sponsors.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License © 2022-present [Matias Capeletto](https://github.com/patak-dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Fvite-plugin-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faslemammad%2Fvite-plugin-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Fvite-plugin-terminal/lists"}