{"name":"fs-monkey","version":"0.1.0","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":"npm run test-coverage","test-basic":"mocha --compilers js:babel-core/register src/**/*.test.js","test-watch":"mocha --compilers js:babel-core/register src/**/*.test.js --watch","test-coverage":"nyc --per-file mocha --compilers js:babel-core/register --require source-map-support/register --full-trace --bail src/**/*.test.js"},"dependencies":{},"devDependencies":{"mocha":"3.4.2","chai":"4.1.0","babel-core":"6","babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","gulp":"3.9.1","gulp-typescript":"3.2.1","source-map-support":"0.4.15","nyc":"11.1.0","@types/mocha":"2.2.41","@types/chai":"4.0.1","@types/node":"8.0.17"},"nyc":{"per-file":true,"include":["src/**/*.js"],"exclude":["src/**/*.test.js"],"extension":[".js"],"reporter":["text","json","lcov","text-summary"],"sourceMap":true,"instrument":true,"cache":true},"gitHead":"d2849ac8c3bc06a473ec6412d01822971f30cd0d","bugs":{"url":"https://github.com/streamich/fs-monkey/issues"},"homepage":"https://github.com/streamich/fs-monkey#readme","_id":"fs-monkey@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"dist":{"integrity":"sha512-hfWYTA3/egTA218pBfltxIenCAP0lz/JbpbR/luoHRnAX1InKsgUv13EUL5f9uFV9HS/K4GusMHaknHJdmjlug==","shasum":"9cc34d636ec9bb089e1f08c442f1a5262eb0b68e","tarball":"http://registry-npm.ywwl.com/fs-monkey/download/fs-monkey-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2iQ7QZ5GQjoUwbj7DQT2buK2oicSX+5a4Wgd4695a2QIgFfCjRPxyfpvFfVkopfa7pJ/ahmFWSfKcUqorcD5F87E="}],"size":7940,"noattachment":false,"key":"/fs-monkey/-/fs-monkey-0.1.0.tgz"},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-monkey-0.1.0.tgz_1502559122798_0.07155098207294941"},"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":1502559123780,"_cnpm_publish_time":1502559123780,"dist-tags":{"latest":"1.1.0"}}