Variables
Const BasenameMaxLength
BasenameMaxLength: 196 = 196
Const ChunkSize
ChunkSize: number = 1024 * 16
Const DirectoryIndex
DirectoryIndex: "index.html" = "index.html"
Const HashLength
HashLength: 8 = 8
Const IgnoreParams
IgnoreParams: string = process.env.IGNORE_PARAMS || 'ts'
Const IgnoreParamsRegex
IgnoreParamsRegex: RegExp[] = IgnoreParams.split(/\s*,\s*/).map((p) => new RegExp(`(?<=[?&]${p}=)[^&]*`, 'g'))
Const IndexFile
IndexFile: "index.json" = "index.json"
Const InventoryDir
InventoryDir: "inventory" = "inventory"
Const main
main: Command = new Command()
Const singleton
singleton: Logger<never, boolean> = Pino({transport: {target: 'pino-pretty',options: {levelFirst: true,hideObject: Boolean(!process.env.LOG_OBJECTS),},},level: process.env.LOG_LEVEL || 'info',})
Remove IgnoreParams from URL Default: ts (timestamp) assumed different for each request