A simple mock plugin with ui for whistle
npm i -g whistlenpm i -g whistle.easy-mock
# or
w2 install whistle.easy-mockUse tools like SwitchyOmega to proxy your website to whistle
Accept two parameters, separated by '|':
- (optional) collection_id: select which collection to take effect
- (optional) host: replace the host of the matched request
[pattern] easy-mock://[collection_id]|[host]
# if you only want to replace host, still need the '|' separator
[pattern] easy-mock://|host
# for example
www.google.com easy-mock://demo- direct open under whistle's plugin panel

- visit http://localhost:8899/whistle.easy-mock and save as PWA app
(replace the 8899 port with your own whistle's real listening port)
Customized JSON5 editor, with comment & javascript object syntax support
Support Mock.js syntax
(Special usage: set delay to > 0 and leave the mock data as an empty object "{}" will delay the real response without replacing the real data)













