1.3.0 • Published 2 years ago

cache-mocks v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

👻cache-mocks

Easy to use command line tool for sync-ing your API mocks

release version weekly download count primary language procentage last commit badge licence badge

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