2.1.5 • Published 1 year ago

request-logs v2.1.5

Weekly downloads
368
License
Apache-2.0
Repository
github
Last release
1 year ago

request-logs

HTTP debug logs for request-compose

$ DEBUG=req,res,json node app.js

req

Prints out the request method, url, and headers:

req GET http://localhost:3000/
    authorization:  Bearer token
    content-length: 2
    Host:           localhost:3000

res

Prints out the response statusCode, statusMessage, and headers:

res 200 OK
    content-type:      application/json
    date:              Sun, 04 Feb 2018 13:42:15 GMT
    connection:        close
    transfer-encoding: chunked

body

Prints out the raw request and response body:

body
{"hey":"hi"}

json

Prints out the parsed request and response body:

json
    hey: hi

sync

Synchronize request/response logs

nocolor

Disable all colors

2.1.5

1 year ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago