routup
Version:
Routup is a minimalistic http based routing framework.
12 lines (11 loc) • 371 B
TypeScript
import { Buffer } from 'buffer';
import { type Stats } from 'node:fs';
import type { EtagOptions } from './type';
/**
* Generate an ETag.
*/
export declare function generateETag(input: string | Buffer | Stats): Promise<string>;
/**
* Create a simple ETag.
*/
export declare function createEtag(input: string | Buffer | Stats, options?: EtagOptions): Promise<string>;