{"library":"resnap","type":"library","category":null,"description":"Version 1.0.1. Lightweight utility for capturing and restoring Node.js require() cache state. Enables module-level isolation in tests by clearing cached modules and ensuring fresh loads. Simpler than alternatives like decache as it provides a single snapshot/restore mechanism. Stable with no recent releases; suitable for Node.js environments where ESM is not required.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","require","cache","unload","unrequire","clear-require","decache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install resnap","imports":["import resnap from 'resnap'","import resnap from 'resnap'; const restore = resnap()","const resnap = require('resnap')"]},{"cmd":"yarn add resnap","imports":[]},{"cmd":"pnpm add resnap","imports":[]}],"homepage":"https://github.com/broofa/resnap#readme","github":"https://github.com/broofa/resnap","docs":null,"changelog":null,"pypi":null,"npm":"resnap","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}