npm.io
8.0.2 • Published 3 months agoCLI

ponse

Licence
MIT
Version
8.0.2
Deps
5
Size
22 kB
Vulns
0
Weekly
0
Stars
5

Ponse License NPM version Build Status Coverage Status

image

Module for work with requests and responses

Install

npm i ponse --save

Api

isGZIP(request) check is gzip supported

  • http request

getPathName(request || string) - get pathname

  • http request

getQuery(request || string) - get query

  • http request

createStatic(options) - serve static content

  • options:
    • cache
    • root

send(data, params) - send data

License

MIT

Keywords