reload-modules
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

reload modules

reload nodejs modules with batchdelcache

Build Status Coverage Status

Installation

# use npm 
npm install reload-modules
# or use yarn 
yarn add reload-modules

Environment

Node.js 10+

Usage

import Reloader from 'reload-modules';
 
const reloader = new Reloader({
    fileMap: {
        mod1: 'abcd',
        mod2: 'efcg',
    },
    context: resolve(__dirname, './fixtures'),
    commonRootPath: resolve(__dirname, './fixtures/mainModule.js'),
});
 
reloader.reload({
    mod1: 'xxxx',
    mod2: 'xxxx',
});

/reload-modules/

    Package Sidebar

    Install

    npm i reload-modules

    Weekly Downloads

    19

    Version

    0.8.0

    License

    MIT

    Unpacked Size

    35.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • cxtom
    • meixg