Skip to content
On this page

Home > entanclature > router

router() function

*Route for different parameters.

Signature:

typescript
export declare function router(url: string | URL): Promise<Result>;

Parameters

ParameterTypeDescription
urlstring | URLThe 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);

Released under the CC-BY-SA-4.0 License.