@bundled-es-modules/fetch-mock
v6.5.2
Published
mirror of fetch-mock, bundled and exposed as ES module
Downloads
215
Keywords
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.