MCPcopy
hub / github.com/tinyhttp/tinyhttp / statTag

Function statTag

packages/etag/src/index.ts:23–25  ·  view source on GitHub ↗
({ mtime, size }: Stats)

Source from the content-addressed store, hash-verified

21}
22
23const statTag = ({ mtime, size }: Stats) => {
24 return '"' + mtime.getTime().toString(16) + '-' + size.toString(16) + '"'
25}
26
27export const eTag = (entity: string | Buffer | Stats, options?: { weak: boolean }) => {
28 if (entity == null) {

Callers 1

eTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected