Skip to content

bartektelec/cache-mocks

Repository files navigation

👻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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published