Socket
Book a DemoInstallSign in
Socket

@borderless/fetch-final-handler

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borderless/fetch-final-handler

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

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

json

FAQs

Package last updated on 14 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts