This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "node:fs"; | |
import path from "node:path"; | |
import { Miniflare, sanitisePath } from "miniflare"; | |
async function main() { | |
// Extract and validate command line args | |
const argv = process.argv.slice(2); | |
if (argv.length < 2 || (argv[0] !== "kv" && argv[0] !== "cache")) { | |
console.log(`usage: node gc.mjs kv,cache [persist] [namespaces..]`); | |
process.exitCode = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
// noinspection JSUnusedGlobalSymbols | |
// dom-exception | |
export declare class DOMException extends Error { | |
constructor(param0?: string, param1?: string); | |
readonly message: string; | |
readonly name: string; | |
readonly code: number; | |
readonly stack: any; | |
static readonly INDEX_SIZE_ERR: 1; |