Gathering detailed insights and metrics for http-z
Gathering detailed insights and metrics for http-z
Gathering detailed insights and metrics for http-z
Gathering detailed insights and metrics for http-z
npm install http-z
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (97.97%)
JavaScript (1.77%)
Shell (0.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
20 Stars
285 Commits
8 Forks
2 Watchers
1 Branches
2 Contributors
Updated on May 28, 2025
Latest Version
8.1.1
Package Id
http-z@8.1.1
Unpacked Size
51.82 kB
Size
11.42 kB
File Count
5
NPM Version
10.9.2
Node Version
22.13.1
Published on
May 06, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
HTTP message (request/response) parser/builder according to the rules defined in RFC 7230
Works in Node.js and in the browser, has zero dependencies.
1$ pnpm i http-z
1import { parse, build } from 'http-z' 2 3const plainMessage = [ 4 'GET /features?p1=v1 HTTP/1.1', 5 'Host: example.com', 6 'Accept: *', 7 'Accept-Encoding: gzip,deflate', 8 'Accept-Language: en-US;q=0.6, en;q=0.4', 9 '', 10 '' 11].join('\r\n') 12 13const messageModel = parse(plainMessage) 14console.log(messageModel) 15 16/* output: 17{ 18 "method": "GET", 19 "protocolVersion": "HTTP/1.1", 20 "host": "example.com", 21 "target": "/features?p1=v1", 22 "path": "/features", 23 "queryParams": [ 24 { "name": "p1", "value": "v1" } 25 ], 26 "headers": [ 27 { "name": "Host", "value": "example.com" }, 28 { "name": "Accept", value": "*" }, 29 { "name": "Accept-Encoding", "value": "gzip,deflate" }, 30 { "name": "Accept-Language", "value": "en-US;q=0.6, en;q=0.4" } 31 ], 32 "headersSize": 135, 33 "bodySize": 0 34} 35*/ 36 37const plainMessageParsed = build(messageModel) 38console.log(plainMessageParsed) 39 40/* output: 41GET /features?p1=v1 HTTP/1.1 42Host: example.com 43Accept: * 44Accept-Encoding: gzip,deflate 45Accept-Language: en-US;q=0.6, en;q=0.4 46 47 48*/
Parses HTTP request/response raw message and returns a model.
rawMessage: string
- HTTP raw message.opts: HttpZParserOptions
- options, optional.1const messageModel = parse(plainMessage)
Builds HTTP request/response raw message from the model.
messageModel: HttpZBuilderModel
- HTTP message model.opts: HttpZBuilderOptions
- options, optional.1const plainMessageParsed = build(messageModel)
Different utils used by the library. Can be used externally.
Different HTTP constants (methods, headers, etc.)
Licensed under the MIT license.
Alexander Mac
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More