download
raw
634 Bytes
'use strict'
const http = require('http')
const stringify = require('fast-json-stringify')({
type: 'object',
properties: {
hello: {
type: 'string'
},
data: {
type: 'number'
},
nested: {
type: 'object',
properties: {
more: {
type: 'string'
}
}
}
}
})
const server = http.createServer(handle)
function handle (req, res) {
const data = {
hello: 'world',
data: 42,
nested: {
more: 'data'
}
}
if (req.url === '/JSON') {
res.end(JSON.stringify(data))
} else {
res.end(stringify(data))
}
}
server.listen(3000)

Xet Storage Details

Size:
634 Bytes
·
Xet hash:
7652d9d8bcde161a620c2d2a3db9d8d455c8d45e91dffb7ef4f296bee979e409

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