@squidcloud/client
    Preparing search index...

    Interface CreateShortUrlOptions

    Options for creating a shortened URL.

    interface CreateShortUrlOptions {
        fileExtension?: string;
        secondsToLive?: number;
        url: string;
    }
    Index

    Properties

    fileExtension?: string

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

    secondsToLive?: number

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

    url: string

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