{"library":"json-server-reset","type":"library","category":null,"description":"json-server-reset is a middleware for the popular json-server library, enabling developers to programmatically reset or merge the in-memory database of a running mock API. The current stable version is 1.6.4. Releases are infrequent but consistent, primarily driven by dependency updates and occasional feature additions, as seen with features like 'merge mode' and 'reset module' in v1.5.0 and v1.6.0. Its key differentiator is providing a simple HTTP endpoint (`/reset` or `/merge`) to modify the mock database state during testing or development, which is crucial for maintaining consistent test environments or quickly iterating on frontend changes without restarting the mock server. It integrates directly into the json-server middleware chain, requiring no complex setup beyond standard Express middleware practices. This package is vital for scenarios where a dynamic, resettable mock backend is needed, especially in automated testing suites or rapid prototyping.","language":"javascript","status":"active","version":"1.6.4","tags":["javascript","json-server","middleware","reset"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-server-reset","imports":["const reset = require('json-server-reset');","const mergeMiddleware = require('json-server-reset/src/merge');","const initJsonServerReset = require('json-server-reset/src/init-reset');"]},{"cmd":"yarn add json-server-reset","imports":[]},{"cmd":"pnpm add json-server-reset","imports":[]}],"homepage":null,"github":"https://github.com/bahmutov/json-server-reset","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-server-reset","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-server-reset/compatibility"}}