Serve specific route with specific content.
$ npm install -g temp-server
# interactive mode
$ temp-server
# arguments mode
$ temp-server --port 3000 --body "hello {{params.name}}" --url "/:name"
Verify LetsEncrypt domain:
$ temp-server
> this.body = i9fh5Ik4Vkjzerr...long...hash
> options.url = /.well-known/acme-challenge/i9fh5Ip...long...hash
> options.port = 4000
const tempServer = require('temp-server')
tempServer(options)
Type: string
Default: /
A router fragment, like /a/b/c
or /foo/:name
Type: number
Default: 4000
Server port
Type: string
Default: hello world
The content to be print.
MIT © EGOIST