This package has been deprecated

Author message:

this version has been deprecated

freshload

0.2.0 • Public • Published

Freshload

Description

A simple module to clear require cache and reload for testing.

Why

There are others out there but none were capable of clearing node-config properly.

Usage

 // index.js
 const config = require('config')
 ...

// test.js
const freshload = require('freshload')

test((t) => {
    const app = freshload(../index.js)
    ...
})

Thanks

This code was inspired by this StackOverflow answer.

Readme

Keywords

Package Sidebar

Install

npm i freshload

Weekly Downloads

0

Version

0.2.0

License

ISC

Last publish

Collaborators

  • cyberwombat