{"name":"fs-monkey","version":"1.1.0","description":"Monkey patches for file system related things.","main":"lib/index.js","license":"Unlicense","keywords":["fs","file","file system","monkey","fsmonkey","monkeyfs","monkeypatch","patch"],"directories":{"doc":"docs"},"repository":{"type":"git","url":"git+https://github.com/streamich/fs-monkey.git"},"scripts":{"build":"babel src --out-dir lib","test":"jest"},"dependencies":{},"devDependencies":{"@babel/cli":"^7.18.6","@babel/core":"^7.18.6","@babel/preset-env":"^7.18.6","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.1","@types/jest":"^29.0.0","@types/node":"^8.10.66","babel-jest":"^29.0.0","jest":"^29.0.0","semantic-release":"^19.0.3","source-map-support":"^0.5.21"},"release":{"verifyConditions":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],"prepare":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},"jest":{"collectCoverageFrom":["src/**/*.js"],"transform":{"^.+\\.jsx?$":"babel-jest"},"testRegex":".*(__tests__/|/test/unit/).*(test|spec)\\.(t|j)sx?$"},"gitHead":"08fc2cc3b4cdd8c0889a0576def3d66338a5cf4a","bugs":{"url":"https://github.com/streamich/fs-monkey/issues"},"homepage":"https://github.com/streamich/fs-monkey#readme","_id":"fs-monkey@1.1.0","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QMUezzXWII9EV5aTFXW1UBVUO77wYPpjqIF8/AviUCThNeSYZykpoTixUeaNNBwmCev0AMDWMAni+f8Hxb1IFw==","shasum":"632aa15a20e71828ed56b24303363fb1414e5997","tarball":"http://registry-npm.ywwl.com/fs-monkey/download/fs-monkey-1.1.0.tgz","fileCount":10,"unpackedSize":21334,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDbfP4qOWHIPDBn3QSfMfNPFB8TZU+AM+SkndK9FszedAiBTMgVOobQYwV1OBAtKElL9jHJNN0WrQy3xyAENzGh/sg=="}],"size":6795,"noattachment":false,"key":"/fs-monkey/-/fs-monkey-1.1.0.tgz"},"_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs-monkey_1.1.0_1752865352094_0.6299440874019788"},"_hasShrinkwrap":false,"readme":"# fs-monkey\n\n[![][npm-img]][npm-url] [![][travis-badge]][travis-url]\n\nMonkey-patches for filesystem related things.\n\n  - Rewrite `require` function to load Node's modules from memory.\n  - Or rewrite the whole `fs` filesystem module.\n\n## Install\n\n```shell\nnpm install --save fs-monkey\n```\n\n## Terms\n\nAn *fs-like* object is an object that implements methods of Node's\n[filesystem API](https://nodejs.org/api/fs.html).\nIt is denoted as `vol`:\n\n```js\nlet vol = {\n    readFile: () => { /* ... */ },\n    readFileSync: () => { /* ... */ },\n    // etc...\n}\n```\n\n\n## Reference\n\n - [`patchFs`](./docs/api/patchFs.md) - rewrites Node's filesystem module `fs` with *fs-like* object `vol`\n - [`patchRequire`](./docs/api/patchRequire.md) - rewrites `require` function, patches Node's `module` module to use a given *fs-like* object for module loading\n\n\n[npm-img]: https://img.shields.io/npm/v/fs-monkey.svg\n[npm-url]: https://www.npmjs.com/package/fs-monkey\n[travis-url]: https://travis-ci.org/streamich/fs-monkey\n[travis-badge]: https://travis-ci.org/streamich/fs-monkey.svg?branch=master\n\n\n## License\n\n[Unlicense](./LICENSE) - public domain.\n","publish_time":1752865352313,"_cnpm_publish_time":1752865352313,"dist-tags":{"latest":"1.1.0"}}