{"name":"fs-monkey","version":"1.0.0","description":"Monkey patches for file system related things.","main":"lib/index.js","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":{"jest":"23.6.0","babel-jest":"23.6.0","babel-core":"6.26.3","babel-cli":"6.26.0","babel-preset-es2015":"6.24.1","source-map-support":"0.5.16","@types/jest":"23.3.14","@types/node":"8.10.59","semantic-release":"15.14.0","@semantic-release/changelog":"3.0.6","@semantic-release/git":"7.0.18","@semantic-release/npm":"5.3.5"},"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":"aedc19f0b5398ac254807d95f6514c76a5fdb9fd","bugs":{"url":"https://github.com/streamich/fs-monkey/issues"},"homepage":"https://github.com/streamich/fs-monkey#readme","_id":"fs-monkey@1.0.0","_nodeVersion":"8.17.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-nxkkzQ5Ga+ETriXxIof4TncyMSzrV9jFIF+kGN16nw5CiAdWAnG/2FgM7CHhRenW1EBiDx+r1tf/P78HGKCgnA==","shasum":"b1fe36b2d8a78463fd0b8fd1463b355952743bd0","tarball":"http://registry-npm.ywwl.com/fs-monkey/download/fs-monkey-1.0.0.tgz","fileCount":11,"unpackedSize":20538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSqcYCRA9TVsSAnZWagAAPqUP/1rw4sFIfsOqar1JKX9V\nlCtQnVp84JB6kIQFuHvCa2mkOV3Bx5Zt4EDvtF+y4NhK3bOBGNE/P72i1Sar\nsd055z9JbcXnD+GOTxmtdE+7sS68wCLd6TS5zo4E3X842RqNobA+42Fs9S/i\ngFS4IIQoVnI7xG6HdOdyOelnG5/RmeDKW9sA+d3YFGuefbOJ+6NwM3iL1+dF\nCIEPzqwMfTtt0P+QlNbMmZRmU/PmxpBwhVVc0Wu8GXOAQqr+XN+gi3x1vlrD\nG8Hvb9/GuKIQnbNdMpVcKyRcUDlFs/gsOLe8AitH7cfvc/pGBvIZ3n7DXqTv\n14v9HRQdx7HLrt5T4r5FW2DzvvHegvEWe+ATZ/zpJJi8FxxD7wxL7nB/sqrx\n1CSNrzIk3XD71e/9Qn3P1gkxD3RLHjGXtsNRMS+oX4c9fbGIWoum05ks31u3\nM7EsTLTpDllMWTQRZ1b+ThKIR1y8Uq6TTgwICphOnSUJpKDx14XvQXb1WIV6\n7s2uXGp/5bbDYlSeSyWBQBM1fmWp6oGI+xVe54UNC4bM+FwEYfvrOHyeGMVN\nX3nstlPG/b4V+xf9zHYXq6Oohi4PwsCSCKOL4tHlEPfSeItPIIEJ90rZdsJL\nuCh6c9Ly492LTn7grRiVT1lwAu/3jrHs9yd9wty88kH0jtwzamk5nj+EuTFE\nwJYV\r\n=s4VT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1/Pj29wtfPamJAs/IFUeb7SOlxdCs0P6lHAkxLTGwkwIhAMgnN2dbRvgDhdUHkrP03UyzKCGJgWmiCBd07qkMi/RQ"}],"size":6343,"noattachment":false,"key":"/fs-monkey/-/fs-monkey-1.0.0.tgz"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-monkey_1.0.0_1581950744350_0.27286116480734846"},"_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":1581950744455,"_cnpm_publish_time":1581950744455,"dist-tags":{"latest":"1.1.0"}}