Repository
Current version released
4 years ago
Versions
- 2.3.4Latest
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.28.0
- 0.27.1
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.1
- 0.23.0
- 0.22.2
- 0.22.1
- 0.22.0
- 0.21.6
- 0.21.5
- 0.21.4
- 0.21.3
- 0.21.2
- 0.21.1
- 0.21.0
- 0.20.2
- 0.20.1
- 0.20.0
- 0.19.1
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
opine
Fast, minimalist web framework for Deno ported from ExpressJS.
- API Docs - created using typedoc.
- Contributing Docs
- Changelog
- License
- ExpressJS License
Example
import opine from "https://raw.githubusercontent.com/asos-craigmorten/opine/master/mod.ts";
import {
Application,
Request,
Response,
NextFunction,
} from "https://raw.githubusercontent.com/asos-craigmorten/opine/master/typings/index.d.ts";
const app: Application = opine();
app.use((_req: Request, res: Response, _next: NextFunction): void => {
res.send("Hello World");
});
app.listen({ port: 3333 });
Run this example now using Deno the opine-demo.ts gist.
deno run --allow-net https://gist.githubusercontent.com/asos-craigmorten/944d0d14130ac5d1f297829010836a73/raw/2b755366ae37a0a6e255d43ec1d1d6401e9cf47c/opine-demo.ts
And open the browser at http://localhost:3333/.
Developing
Run Tests
make test
Run Benchmarks
make benchmark
Format Code
make fmt
Generate Documentation
make doc