How to use the dummy-json.utils function in dummy-json

To help you get started, we’ve selected a few dummy-json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mockoon / mockoon / src / app / libs / dummy-helpers.lib.ts View on Github external
oneOf: function (itemList: string[]) {
      return DummyJSON.utils.randomArrayItem(itemList);
    },
    // return some random item as an array (to be used in triple braces) or as a string

dummy-json

Dummy JSON mock data generator for Node.js

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages