Mock Server
Guides
Supported JS libraries

Supported JavaScript libraries

To assist in streamlining the process of creating mock server definitions, we have included a selection of useful third-party JavaScript libraries within the mock server runtime. These libraries have been pre-installed and are automatically injected into the JavaScript context, eliminating the need for you to manually include them using the require() function. Simply begin utilizing them in your code.

The list of supported libraries are:

  • lo-dash v4.17.11 (general utility)
  • momentjs v2.24.0 (time and dates)
  • faker 4.1.0 (data generator)
  • ajv 6.10.0 (JSON schema validation)
  • validator 10.11.0 (validation helper)

If you have a suggestion for a library that is not currently available, contact us and suggest it.