Skip to main content

Documentation Index

Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

A union type representing different file formats that can be processed by the SDK. Provides flexibility in how files can be passed to various functions, supporting multiple input formats.
export type FileType = Download | Uint8Array | Buffer | ReadStream;

Examples

import { downloadFile, uploadFileToS3 } from "@intuned/browser";
export default async function handler(params, page, context) {
  // From a browser download
  const download = await downloadFile({
    page,
    trigger: "https://example.com/file.pdf",
  });
  const uploaded = await uploadFileToS3({
    file: download,
    configs: s3Config,
  });
}