@urami/core
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

@urami/core

Server-side for Urami automatic image optimization. Please refer to documentation for more details.

createRequestHandler

A high-order function to ceate a request handler. Options can be specifed, please refer to Configuration page

const handler = createRequestHandler({
  // configuration
})

The handler itself is a function that accepts a Request object and returns a Response object.

export type RequestHandler = (request: Request) => Promise<Response>

Package Sidebar

Install

npm i @urami/core

Homepage

urami.dev/

Weekly Downloads

10

Version

1.2.3

License

none

Unpacked Size

49.7 kB

Total Files

27

Last publish

Collaborators

  • rayriffy