@squidcloud/client
    Preparing search index...

    Interface CreateShortUrlsOptions

    Options for creating multiple shortened URLs.

    interface CreateShortUrlsOptions {
        fileExtension?: string;
        secondsToLive?: number;
        urls: string[];
    }
    Index

    Properties

    fileExtension?: string

    Optional file extension to include in all shortened URL IDs (e.g., 'pdf', 'html'). The extension becomes part of each ID, so 'abc123.pdf' and 'abc123.jpg' are distinct URLs.

    secondsToLive?: number

    Seconds to live for all shortened URLs. If set to 0, the URLs will never expire. Defaults to 1 day.

    urls: string[]

    The URLs to shorten. They must be valid URLs and should include the protocol (start with http:// or https://).