import-fresh

WebJar for import-fresh

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

import-fresh
Last Version

Last Version

3.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

import-fresh
WebJar for import-fresh
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/import-fresh

Download import-fresh

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/import-fresh/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>import-fresh</artifactId>
    <version>3.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/import-fresh/
implementation 'org.webjars.npm:import-fresh:3.3.0'
// https://jarcasting.com/artifacts/org.webjars.npm/import-fresh/
implementation ("org.webjars.npm:import-fresh:3.3.0")
'org.webjars.npm:import-fresh:jar:3.3.0'
<dependency org="org.webjars.npm" name="import-fresh" rev="3.3.0">
  <artifact name="import-fresh" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='import-fresh', version='3.3.0')
)
libraryDependencies += "org.webjars.npm" % "import-fresh" % "3.3.0"
[org.webjars.npm/import-fresh "3.3.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : parent-module jar [1.0.0,2)
org.webjars.npm : resolve-from jar [4.0.0,5)

Project Modules

There are no modules declared in this project.

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

Versions

Version
3.3.0
3.2.2
3.2.1
2.0.0