fetch-mock
fetch-mock copied to clipboard
Support deno
Not exactly sure what the correct approach should be to maintaining the codebase. maybe something to consider when upgrading the codebase to ES modules
Useful? https://github.com/davidbailey00/deno-npm-demo
For anyone else stumbling in here, it's usable via skypack. It's a little messy to get it to work with proper types, or maybe I'm just missing something, but it works.
import type * as tfm from "https://cdn.skypack.dev/[email protected]/esm/client.js?dts";
// @ts-ignore: It's a real mess
import fetchMock from "https://cdn.skypack.dev/[email protected]/esm/client.js?dts";
export const fm: typeof tfm = fetchMock;