UNPKG
pino-http
Version:
latest (11.0.0)
next (10.2.0)
11.0.0
10.5.0
10.4.0
10.3.0
10.2.0
10.1.0
10.0.0
9.0.0
8.6.1
8.6.0
8.5.1
8.5.0
8.4.0
8.3.3
8.3.2
8.3.1
8.3.0
8.2.1
8.2.0
8.1.1
8.1.0
8.0.1
8.0.0
7.1.0
7.0.0
6.6.0
6.5.0
6.4.0
6.3.3
6.3.2
6.3.1
6.3.0
6.2.0
6.1.0
6.0.0
5.8.0
5.7.0
5.6.0
5.5.0
5.4.0
5.3.0
5.2.0
5.1.0
5.0.0
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0.0
3.2.2
3.2.1
3.2.0
3.1.0
3.0.1
3.0.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
High-speed HTTP logger for Node.js
github.com/pinojs/pino-http
pinojs/pino-http
pino-http
/
benchmarks
/
http-ndjson-minimal-server.js
14 lines
(9 loc)
•
241 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
const
http =
require
(
'http'
)
const
httpNdjson =
require
(
'http-ndjson'
)
const
server = http.
createServer
(handle)
function
handle
(
req, res
) { res.
end
(
'hello world'
)
httpNdjson
(req, res,
console
.
log
) } server.
listen
(
3000
)