requirefresh

Require a file without adding it into the require cache

npm install requirefresh
128 downloads in the last day
1 818 downloads in the last week
7 778 downloads in the last month

Require Fresh

Build Status NPM version Gittip donate button Flattr donate button PayPayl donate button

Require a file without adding it into the require cache

Install

  1. Install Node.js
  2. npm install --save requirefresh

Usage

// Via call and return with no error handling
var result = require('requirefresh').requireFresh('my-module-path')

// Via callback uses domains for errors (with try/catch for node 0.8 support)
var resultOrError = require('requireFresh').requireFreshSafe('my-module-path', function(err,result){

});

History

You can discover the history inside the History.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Bevry Pty Ltd
Copyright © 2011-2012 Benjamin Arthur Lupton

npm loves you