JSPM

msw

0.4.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8012854
  • Score
    100M100P100Q207931F
  • License MIT

Deviation-less client-side runtime API mocking using Service Workers.

Package Exports

  • msw

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (msw) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Package version Build status Dependencies status Dev dependencies status

MSW

MSW (Mock Service Worker) is an API mocking library that operates by intercepting outgoing requests.

Features

  • Server-less. Doesn't establish any servers, operates entirely in a browser;
  • Deviation-free. Intercepts production URI requests from your page and mocks their responses;
  • Mocking as a tool. Enable/disable/change mocking logic on runtime instantly without any compilations or rebuilds. Control the MSW lifecycle from your browser's DevTools;
  • Essentials. Mock status codes, headers, delay responses, and create custom response mocking functions.

Documentation

Contribute

Have an idea? Found a bug? Please communicate it through using the issues tab of this repository. Pull requests are welcome as well!