Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamataryo/stdin-server
https://github.com/kamataryo/stdin-server
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kamataryo/stdin-server
- Owner: kamataryo
- Created: 2020-02-09T10:38:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T23:52:14.000Z (over 3 years ago)
- Last Synced: 2024-08-08T16:54:58.021Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# STDIN Server
[![Build Status](https://travis-ci.org/kamataryo/stdin-server.svg?branch=master)](https://travis-ci.org/kamataryo/stdin-server)
A CLI to run a server from STDIN.
## Usage
```shell
$ echo 'hello' | npx stdin-server
$ pbpaste | npx stdin-server
```## commands
```shell
$ npx stdin-server --helpA CLI to run a server from STDIN.
Usage
$ stdin-serverOptions
--port, -p port to be used
--content-type, -c prefered MIME value for Content-Type response header
--open, -o open browser or not automaticallyExamples
$ echo 'Hello!' | stdin-server
$ pbpaste | stdin-server # only with Mac
```