require-without-cache
JSON →A tiny utility to require Node.js modules while bypassing the module cache. Current stable version is 0.0.6 (released 2015, no updates since). It accepts a file path and the require function reference, then temporarily deletes the module from require.cache before loading, ensuring a fresh copy. Intended primarily for testing scenarios where stubbing or mocking modules requires uncached imports. Unlike other solutions that require explicit cache deletion, this wraps the require call to do it automatically.
Traffic · last 30 days stale · no recent hits
total hits 9
actors 2 distinct systems
last hit 16d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇧🇷 Brazil · 🇨🇦 Canada · 🇪🇸 Spain
Resources
packagerequire-without-cache ↗
API endpoints
full doc /v1/registry/require-without-cache