Neanderthals Programming Machines
    Wondering what’s next for npm?Check out our public roadmap! »

    fs-monkey

    1.0.3 • Public • Published

    fs-monkey

    Monkey-patches for filesystem related things.

    • Rewrite require function to load Node's modules from memory.
    • Or rewrite the whole fs filesystem module.

    Install

    npm install --save fs-monkey

    Terms

    An fs-like object is an object that implements methods of Node's filesystem API. It is denoted as vol:

    let vol = {
        readFile: () => { /* ... */ },
        readFileSync: () => { /* ... */ },
        // etc...
    }

    Reference

    • patchFs - rewrites Node's filesystem module fs with fs-like object vol
    • patchRequire - rewrites require function, patches Node's module module to use a given fs-like object for module loading

    License

    Unlicense - public domain.

    Install

    npm i fs-monkey

    DownloadsWeekly Downloads

    2,886,239

    Version

    1.0.3

    License

    Unlicense

    Unpacked Size

    22.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar