@4geit/swg-create-or-load-data-helper
v1.31.0
Published
helper function to create or load a data file with a data fake generator
Downloads
20
Keywords
Readme
@4geit/swg-create-or-load-data-helper
helper function to create or load a data file with a data fake generator
Installation
- A recommended way to install @4geit/swg-create-or-load-data-helper is through npm package manager using the following command:
npm i @4geit/swg-create-or-load-data-helper --save
Or use yarn
using the following command:
yarn add @4geit/swg-create-or-load-data-helper
- All you have to do is to import the
@4geit/swg-create-or-load-data-helper
package in your controller or mock file as below:
// ...
const swgCreateOrLoadDataHelper = require('@4geit/swg-create-or-load-data-helper');
// ...
And use it with one of your endpoint controller as below:
// ...
const data = swgCreateOrLoadDataHelper(filename, library, generator, n)
// ...