require-no-cached

1.0.0 • Public • Published

Build Status Coverage Status Dependency Status License

node-require-no-cached

This module is essentially node's require, but every time a module is loaded with node-require-no-cached tha module is loaded as if it is its first time being required.

I wrote this for testing modules in the node REPL. I wanted to be able to change the code and then require my module again and get the current version of the code without restarting the REPL.

Installation

npm install node-require-no-cached

Usage

var rerequire = require('require-no-cached');
 
// Use it just like require
var mod = rerequire('module-slug');
 
/* Do stuff with normally mod */

Readme

Keywords

Package Sidebar

Install

npm i require-no-cached

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • awlayton