Requirements
Node >= v16.15
Quick start
Generate a mock-list.js
file for configuration.
npx cache-mocks --init
Usage
Download fresh mock files and save them
npx cache-mocks
or
npx cache-mocks --target ./src/mocks --ext js
Options
target
--target <x>
Specify a target directory for the mocks to be saved
Type: string
Default: ./mocks
ext
--ext <x>
Specify what file extension the target files should be saved with
Type: json | js | ts
Default: json