@jcottam/html-metadata
Version:
This JavaScript library simplifies the extraction of HTML Meta and OpenGraph tags from HTML content or URLs.
20 lines (18 loc) • 453 B
text/typescript
// Mock File API for Node.js environment
if (typeof globalThis.File === "undefined") {
globalThis.File = class File {
constructor(
public chunks: any[],
public filename: string,
public options: any = {}
) {}
} as any
}
// Mock FileList API for Node.js environment
if (typeof globalThis.FileList === "undefined") {
globalThis.FileList = class FileList extends Array {
constructor() {
super()
}
} as any
}