{"name":"fs-monkey","version":"1.0.4","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":"^28.1.4","@types/node":"^8.10.66","babel-jest":"^28.1.2","jest":"^28.1.2","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":"b8737e152b984e0cd0a736f9b8d7ff1a32e2f6a0","bugs":{"url":"https://github.com/streamich/fs-monkey/issues"},"homepage":"https://github.com/streamich/fs-monkey#readme","_id":"fs-monkey@1.0.4","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==","shasum":"ee8c1b53d3fe8bb7e5d2c5c5dfc0168afdd2f747","tarball":"http://registry-npm.ywwl.com/fs-monkey/download/fs-monkey-1.0.4.tgz","fileCount":10,"unpackedSize":21939,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEKDSkcq1H133rOz+uD+wEf+eauo+6t2G+9iu1Onsw2AiEA+iHSgnc/RFXotroBefcM0DHhFo9PzRy+gXbUdL5z+6c="}],"size":6738,"noattachment":false,"key":"/fs-monkey/-/fs-monkey-1.0.4.tgz"},"_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-monkey_1.0.4_1685586577745_0.3826957470713268"},"_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":1685586577951,"_cnpm_publish_time":1685586577951,"dist-tags":{"latest":"1.1.0"}}