{"name":"fs-monkey","version":"0.3.1","description":"Monkey patches for file system related things.","main":"lib/index.js","keywords":["fs","file","file system","monkey","fsmonkey","monkeyfs","monkeypatch","patch"],"repository":{"type":"git","url":"git+https://github.com/streamich/fs-monkey.git"},"scripts":{"build":"babel src --out-dir lib","test":"jest","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"dependencies":{},"devDependencies":{"jest":"21.2.1","babel-jest":"21.2.0","babel-core":"6","babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","source-map-support":"0.4.15","semantic-release":"^8.2.0","@types/jest":"21.1.8","@types/node":"8.0.17"},"jest":{"collectCoverageFrom":["src/**/*.js"],"transform":{"^.+\\.jsx?$":"babel-jest"},"testRegex":".*(__tests__/|/test/unit/).*(test|spec)\\.(t|j)sx?$"},"gitHead":"eab4fd3e20db2db4c64bcf41843f7eb92e2cd766","bugs":{"url":"https://github.com/streamich/fs-monkey/issues"},"homepage":"https://github.com/streamich/fs-monkey#readme","_id":"fs-monkey@0.3.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"dist":{"integrity":"sha512-RDnbGuT4X/YWZrSJ9+9Xh1CQ5SOScqHG0DZdpiXk/fWGKHbKqvrkzjg2O/nyrDdaGdSwWJ8lso7/EJ4LXh12PQ==","shasum":"69edd8420e04da04d4d3ea200da1ccdc444eecd0","tarball":"http://registry-npm.ywwl.com/fs-monkey/download/fs-monkey-0.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhbGsOc4iERtKf3HoJGvDAYZITyrH8cH4eLc+L5BWIxAiAmeceSmT5us6A8VnaQLzLve9ctI95qS/T815IDTTf20g=="}],"size":9497,"noattachment":false,"key":"/fs-monkey/-/fs-monkey-0.3.1.tgz"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-monkey-0.3.1.tgz_1512378851381_0.18529657600447536"},"directories":{},"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":1512378852444,"_cnpm_publish_time":1512378852444,"dist-tags":{"latest":"1.1.0"}}