Nesting Penguins Molt

    recursive-uncache

    0.1.1 • Public • Published

    recursive-uncache

    require per caches all modules. If you remove a module from require.cache, but the parent module doesn't reevaluate its require calls, the old state persists.

    recursive-uncache removes a module and all recursive parents from the cache.

    Install

    npm install --save-dev recursive-uncache

    Usage

    uncache = require("recursive-uncache")
     
    uncache(module,base=".",verbose=false) // module must be a absolute path
    // example with chokidar
    chokidar.watch(["./src"],{ignoreInitial: true})
    .on("all", (ev, filepath) => uncache(filepath))

    License

    Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.

    Install

    npm i recursive-uncache

    DownloadsWeekly Downloads

    65

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    2.22 kB

    Total Files

    3

    Last publish

    Collaborators

    • paulpflug