Appearance
Home > entanclature > router
router() function
*Route for different parameters.
Signature:
typescript
export declare function router(url: string | URL): Promise<Result>;
Parameters
Parameter | Type | Description |
---|---|---|
url | string | URL | The URL of the image. |
Returns:
Promise<Result>
The result of the processing.
Remarks
You can't use this function directly. You need to use it through entanclature.
This function passes the parameter to the fromURL() as the parameter is URL.
Example
typescript
import { entanclature } from "entanclature";
const url = "https://example.com/images/OTk0QTc5OVA4MEErVy04.png";
const result = await entanclature(url);
console.log(result);