Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 759 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 759 Bytes

node-cache-wiper

Description

node-cache-wiper is a cache wiper of the required modules in Node.js.
It's useful when you making tests and there is a need refresh caches.

How to install

$ npm install https://github.com/otanim/node-cache-wiper --save

Usage

const cacheWiper = require('node-cache-wiper');

const serverPath = './src/server';
let server = require(serverPath);   //content of the "server" file now was cached

cacheWiper(serverPath);             //cache of the "server" file now was wiped

server = require(serverPath);       //content of the "server" file now was cached AGAIN

##License node-cache-wiper is licensed under MIT.