requireuncached

0.1.1 • Public • Published

requireUncached

A utility function to be able to work with uncached modules (e.g. for testing)

Installation

npm install requireUncached --save

Usage

var requireUncached = require('requireUncached');

var myMod = requireUncached('../mymodule');

// if myMod is required again later while node is still running this session
// (for instance because of running tasks triggered by gulp.watch), the module
// will not be in the require.cache and will be reloaded

Tests

npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Release History

  • 0.1.0 Initial release

Readme

Keywords

Package Sidebar

Install

npm i requireuncached

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • hravnx