@bundled-es-modules/fetch-mock

mirror of fetch-mock, bundled and exposed as ES module

Usage no npm install needed!

<script type="module">
  import bundledEsModulesFetchMock from 'https://cdn.skypack.dev/@bundled-es-modules/fetch-mock';
</script>

README

fetch-mock

This is a mirror of fetch-mock, bundled and exposed as ES module.

Install

npm install @bundled-es-modules/fetch-mock
bower install bundled-es-modules/fetch-mock

Use

<script type="module">
  // from main file
  import { fetchMock } from 'fetch-mock';
  // or directly
  import fetchMock from 'fetch-mock/fetchMock.js';
  console.log(fetchMock);
</script>

Make sure you added @bundled-es-modules scope to the path if used via npm.