download
raw
385 Bytes
'use strict'
const fastify = require('../fastify')({
logger: false
})
const Readable = require('node:stream').Readable
fastify
.get('/', function (req, reply) {
const stream = Readable.from(['hello world'])
reply.send(stream)
})
fastify.listen({ port: 3000 }, (err, address) => {
if (err) {
throw err
}
fastify.log.info(`server listening on ${address}`)
})

Xet Storage Details

Size:
385 Bytes
·
Xet hash:
d4742c757236d0a5cc8ccea10bbd7ed604f1784181da36a618e9606a7468e9e3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.