3.3.0 • Published 3 years ago

import-fresh v3.3.0

Weekly downloads
27,229,256
License
MIT
Repository
github
Last release
3 years ago

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

cosmiconfig@eslint/eslintrc@huyhpham/rn-linearchetype-library@docusaurus/corecordova-createeasy-select-rnvuedragdropuploadimages@docusaurus-azuread/plugin-content-docs@jerryhorak/docusaurus-corereact-native-bluetooth2killi8n-react-native-fast-imagepipihomern-send-sms@icanpm/api-master@oneplanetcrowd/developers@tailwindcssinjs/typescript-plugin@cashremit/cr-streamline-icons@almeidaa/msa-xyj-testreact-native-template-rfbasetypescript-tailwindcssinjs-plugincloud-archive-s3airscanairscan-examplebb-chat@twstyled/babelreact-native-esc-pos-sahaab@twstyled/babel-plugin@twstyled/babel-plugin-tw@borisovart/atol-kkt-module@frxf/frxfdeneme323112@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_modbitgetafryxiconsreact-native-thanh-toast-library@jttechnic/interpreter@thanhnguyen14797/react-native-thanh-toast-library@eginnovations/eginnovations-capacitor-plugin@saeon/quick-formnocodb1@iobroker-community-adapters/iobroker.device-watcher@olivervorasai/slidermysql-formatreact-native-printer-brothersrn-pdf-reader-offline@belko.tech/belko-multi-wallet-sdk@newhorizon-tech/dd-npm-package-templatereact-native-shekhar-bridge-testcogoportutils@everything_explained/web-md-bundleruncoded-connect@reversodev/oceanic-fleetwilscanner@khalitovadel/abstract-repository@oiti/documentoscopy-react-native@respondea/cordova-plugin-v-inappbrowser@mink-opn/build-tokensquoc-testreact-native-slider-kf@hotfusion/service@infinitebrahmanuniverse/nolb-imp@prodam/prodam-types@saaspe/componentsplginexpand-react-bridgeopea-bootstraapnocodb-dailyluminos-ui-coresklif-ui-kitsklif-apits-handyicg-crawler@everything-registry/sub-chunk-1908jawwy-sdkjawwy_gamification_release@314oner_npm/universal-components-library@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryeginnovations-capacitor-pluginreact-native-credit-card-pkgp149-table@rabailriaz/hisaab-web-portalsklif-uimachinebeemrcaps@mediakular/svelte-data-gridreact-native-jawwy_sample@arielapaula/components@arielapaula/test@argdown/node@astro_z/nodejs-intership-lesson-1
3.3.0

3 years ago

3.2.2

3 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.0

7 years ago