import-fresh alternatives and similar modules
Based on the "Miscellaneous" category.
Alternatively, view require-uncached alternatives based on common mentions on social networks and blogs.
-
Electron
Build cross platform desktop apps with web technologies. (You might like awesome-electron) -
cheerio
Fast, flexible, and lean implementation of core jQuery designed specifically for the server. -
v86
x86 virtualization in JavaScript, running in your browser and NodeJS -
hypernova
A service for server-side rendering your JavaScript views. -
nan
A header file filled with macro and utility goodness for making add-on development for across Node.js versions easier. -
webworker-threads
Lightweight Web Worker API implementation with native threads. -
node-pre-gyp
Makes it easy to publish and install Node.js C++ addons from binaries. -
Bottleneck
A powerful rate limiter that makes throttling easy. -
hasha
Hashing made simple. Get the hash of a buffer/string/stream/file. -
node-bell
Real-time anomalies detection for periodic time series. -
schemapack
Create a schema object to encode/decode your JSON in to a compact byte buffer with no overhead. -
stringify-object
Stringify an object/array like JSON.stringify just without all the double-quotes. -
node-video-lib
Pure JavaScript library for working with MP4 and FLV video files and creating MPEG-TS chunks for HLS streaming. -
resolve-from
Resolve the path of a module like require.resolve() but from a given path. -
strip-bom
Strip UTF-8 byte order mark (BOM) from a string/buffer/stream.
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of import-fresh or a related project?
README
import-fresh 
Import a module while bypassing the cache
Useful for testing purposes when you need to freshly import a module.
Install
$ npm install import-fresh
Usage
// foo.js
let i = 0;
module.exports = () => ++i;
const importFresh = require('import-fresh');
require('./foo')();
//=> 1
require('./foo')();
//=> 2
importFresh('./foo')();
//=> 1
importFresh('./foo')();
//=> 1
import-fresh for enterprise
Available as part of the Tidelift Subscription.
The maintainers of import-fresh and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
Related
- clear-module - Clear a module from the import cache
- import-from - Import a module from a given path
- import-cwd - Import a module from the current working directory
- import-lazy - Import modules lazily