2.x API

April 16, 2023 ยท View on GitHub

Adapted from the ExpressJS API Docs.

opine()

Creates an Opine application. The opine() function is a top-level function exported by the Opine module:

import opine from "https://deno.land/x/opine@2.3.4/mod.ts";

const app = opine();

The opine() function is also exported as a named export:

import { opine } from "https://deno.land/x/opine@2.3.4/mod.ts";

const app = opine();