Skip to content
/ noriu Public

A wrapper for Node.js' require() with cache invalidation

License

Notifications You must be signed in to change notification settings

tghs/noriu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noriu

A wrapper for Node.js' require() with cache invalidation.

The Node.js runtime caches modules as you require() them. This is not always desirable. By using noriu() instead, if the module has changed since it was last loaded, you'll get the new module rather than an old cached copy that you'd get from require().

Usage

var noriu = require('noriu')

function callback() {
	var http = noriu('http')
	var plugin = noriu('./plugin')
}

Installation

$ npm install noriu

Development

$ npm install -g nodeunit
$ ./test.sh

About

A wrapper for Node.js' require() with cache invalidation

Resources

License

Stars

Watchers

Forks

Packages

No packages published