{"id":19378316,"url":"https://github.com/kurehajime/viewb","last_synced_at":"2025-04-23T19:31:52.179Z","repository":{"id":36007248,"uuid":"40300527","full_name":"kurehajime/viewb","owner":"kurehajime","description":"convert the command to a web server","archived":false,"fork":false,"pushed_at":"2021-09-29T14:26:15.000Z","size":10568,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T19:11:16.041Z","etag":null,"topics":["console-tool","go","golang","viewb","webservers"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kurehajime.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}},"created_at":"2015-08-06T11:06:19.000Z","updated_at":"2023-04-05T16:59:37.000Z","dependencies_parsed_at":"2022-08-27T03:15:56.257Z","dependency_job_id":null,"html_url":"https://github.com/kurehajime/viewb","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/kurehajime%2Fviewb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fviewb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fviewb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fviewb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurehajime","download_url":"https://codeload.github.com/kurehajime/viewb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250499839,"owners_count":21440695,"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-tool","go","golang","viewb","webservers"],"created_at":"2024-11-10T09:05:34.723Z","updated_at":"2025-04-23T19:31:51.839Z","avatar_url":"https://github.com/kurehajime.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# viewb\n\n[![CircleCI](https://circleci.com/gh/kurehajime/viewb.svg?style=svg)](https://circleci.com/gh/kurehajime/viewb)\n\nConvert the command to a web server\n\n![viewb](https://cloud.githubusercontent.com/assets/4569916/9249386/589c2126-41ff-11e5-9e6f-b12daa6aadf0.png)\n\n## Usage\n\n```\n$ viewb  \u003cCOMMAND\u003e \u003cARGS\u003e\n```\n\nOption:  \n  -p=\\\u003cPORT\\\u003e: Port(default:8080)  \n  -h: Prints the first N lines.if minus value then prints the last N lines.  \n  -o: Open web browser  \n  -user=\\\u003cUSERNAME\\\u003e: Basic Authentication user name  \n  -pass=\\\u003cPASSWORD\\\u003e: Basic Authentication password  \n  -e=\\\u003cENCODING\\\u003e: input encoding  \n\n\n## How to install\n\n[Download](https://github.com/kurehajime/viewb/releases)\n\nor\n\nBuild yourself (Go lang).\n\n```\ngo install github.com/kurehajime/viewb@latest\n```\n\n\n## Example\n\n##### Example 1 :Command to web server\n\n```sh\n$ viewb -p 8080 ls -la\n\nhttp://localhost:8080\nStop: Ctrl+C\n```\n\nOpen in browser http://localhost:8080\n\n```\ntotal 32  \ndrwxr-xr-x   6 user  staff   204  8  6 20:19 .  \ndrwx------+ 11 user  staff   374  8  6 20:17 ..  \n-rw-r--r--@  1 user  staff  6148  8  6 20:19 .DS_Store  \n-rw-r--r--   1 user  staff     5  8  6 20:18 Untitled-1.txt    \n-rw-r--r--   1 user  staff  1557  8  6 20:19 Untitled-2.txt  \ndrwxr-xr-x   2 user  staff    68  8  6 20:19 test  \n```\n\n##### Example 2 :Script to web server\n\n```sh\n$ viewb ./HelloworldAndPingOne.sh\n\nhttp://localhost:8080\nStop: Ctrl+C\n```\n\nOpen in browser http://localhost:8080\n\n```\nHello World!\nPING 8.8.8.8 (8.8.8.8): 56 data bytes\n64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=60.380 ms\n\n--- 8.8.8.8 ping statistics ---\n1 packets transmitted, 1 packets received, 0.0% packet loss\nround-trip min/avg/max/stddev = 60.380/60.380/60.380/0.000 ms\n```\n\n##### Example 3 :Basic Authentication\n\n```sh\n$ viewb -user laputa -pass balse echo booomb!\n\nhttp://localhost:8080\nStop: Ctrl+C\n```\n\nOpen in browser http://localhost:8080  \nAnd login.\n\n##### Example 5 :open browser \n\n```sh\n$ viewb -o echo yah!\n\nhttp://localhost:8080\nStop: Ctrl+C\n```\n\nOpen automatically.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurehajime%2Fviewb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurehajime%2Fviewb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurehajime%2Fviewb/lists"}