download
raw
369 Bytes
'use strict'
const { register } = require('../..')
const assert = require('assert')
function setup () {
const obj = { foo: 'bar' }
register(obj, shutdown)
}
let shutdownCalled = false
function shutdown (obj) {
shutdownCalled = true
assert.strictEqual(obj.foo, 'bar')
}
setup()
process.on('exit', function () {
assert.strictEqual(shutdownCalled, true)
})

Xet Storage Details

Size:
369 Bytes
·
Xet hash:
622f345aed7b9414c092102ae1a6709c5fbc23fdd0ff23cb0beef8e23dcbbc20

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