@borderless/fetch-final-handler
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Fetch Final Handler

NPM version NPM downloads Build status Test coverage

Final HTTP 404 responder for fetch, e.g. Cloudflare Workers.

Installation

npm install @borderless/fetch-final-handler --save

Usage

import { compose } from "throwback";
import { finalHandler } from "@borderless/fetch-final-handler";

const app = compose([get(), post()]);
const req = new Request("/");

app(req, finalHandler());

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Package Sidebar

Install

npm i @borderless/fetch-final-handler

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.7 kB

Total Files

13

Last publish

Collaborators

  • blakeembrey