{"_id":"mock","_rev":"13-0585b9532468bc496c7978a4b493f1f3","name":"mock","description":"Load a module with it's require's mocked out","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"mock","version":"0.1.0","description":"Load a module with it's require's mocked out","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Colingo/mock.git"},"main":"index","homepage":"https://github.com/Colingo/mock","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Colingo/mock/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~0.2.2","browserify":"https://github.com/raynos/node-browserify/tarball/master","testem":"~0.2.52"},"licenses":[{"type":"MIT","url":"http://github.com/Colingo/mock/raw/master/LICENSE"}],"scripts":{"test":"node ./test","build":"browserify test/index.js -o test/static/bundle.js","testem":"testem","postinstall":"npm dedup"},"testling":{"files":"test/*.js","browsers":{"ie":["8","9","10"],"firefox":["16","17","nightly"],"chrome":["22","23","canary"],"opera":["12","next"],"safari":["5.1"]}},"readme":"# mock\n\n[![build status][1]][2]\n\n[![browser support][3]][4]\n\nLoad a module with it's require's mocked out\n\nWorks in both node and browserify\n\n## Example\n\n```js\nvar realB = require(\"./fixtures/b\")\n\nvar b = mock(\"./fixtures/b\", {\n    fs: {\n        readFileSync: function (uri) {\n            if (uri === \"clowns.txt\") {\n                return \"some clowns\"\n            }\n        }\n    }\n    , \"./fixtures/c\": null\n    , \"./fixtures/a\": function () {\n        return 42\n    }\n}, require)\n\n// use b. It's reference to fs and fixtures/a have been replaced with\n// your passed objects\n```\n\nLimitations:\n\n - You have to require the thing your mocking out or browserify\n    won't load it and all it's dependencies into the bundle.\n - When you set a dependency to null your saying don't overload\n    that dependency with this value, but do nuke it from the cache.\n    This is useful when you want to mock out something ./fixtures/c\n    depends on but not touch the implementation of ./fixtures/c\n\n## Installation\n\n`npm install mock`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Colingo/mock.png\n  [2]: http://travis-ci.org/Colingo/mock\n  [3]: http://ci.testling.com/Colingo/mock.png\n  [4]: http://ci.testling.com/Colingo/mock\n\n","readmeFilename":"README.md","_id":"mock@0.1.0","dist":{"shasum":"32b786d3d46807e1f885cef13a6061e883bf0d46","tarball":"https://registry.npmjs.org/mock/-/mock-0.1.0.tgz","integrity":"sha512-msKzpLOdHDtkssU80lAsgd9N3TEot/syQRXmb1IqT/gd/StoUdTmyvLzNaE7oclBP8B+BaLoLucnQf5QWk2SCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGzTO+QBQoLm6e0DLJzuHFM9UAgCCbxHR4FHtaSWX/XQIgGkTUvHNQJF0cQ6+rM51SEZmkRovbehWYdjvP9SwMnvY="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}]},"0.1.1":{"name":"mock","version":"0.1.1","description":"Load a module with it's require's mocked out","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Colingo/mock.git"},"main":"index","homepage":"https://github.com/Colingo/mock","contributors":[{"name":"Raynos"}],"bugs":{"url":"https://github.com/Colingo/mock/issues","email":"raynos2@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~0.2.2","browserify":"https://github.com/raynos/node-browserify/tarball/master","testem":"~0.2.52"},"licenses":[{"type":"MIT","url":"http://github.com/Colingo/mock/raw/master/LICENSE"}],"scripts":{"test":"node ./test","build":"browserify test/index.js -o test/static/bundle.js","testem":"testem"},"testling":{"files":"test/*.js","browsers":{"ie":["8","9","10"],"firefox":["16","17","nightly"],"chrome":["22","23","canary"],"opera":["12","next"],"safari":["5.1"]}},"readme":"# mock\n\n[![build status][1]][2]\n\n[![browser support][3]][4]\n\nLoad a module with it's require's mocked out\n\nWorks in both node and browserify\n\n## Example\n\n```js\nvar realB = require(\"./fixtures/b\")\n\nvar b = mock(\"./fixtures/b\", {\n    fs: {\n        readFileSync: function (uri) {\n            if (uri === \"clowns.txt\") {\n                return \"some clowns\"\n            }\n        }\n    }\n    , \"./fixtures/c\": null\n    , \"./fixtures/a\": function () {\n        return 42\n    }\n}, require)\n\n// use b. It's reference to fs and fixtures/a have been replaced with\n// your passed objects\n```\n\nLimitations:\n\n - You have to require the thing your mocking out or browserify\n    won't load it and all it's dependencies into the bundle.\n - When you set a dependency to null your saying don't overload\n    that dependency with this value, but do nuke it from the cache.\n    This is useful when you want to mock out something ./fixtures/c\n    depends on but not touch the implementation of ./fixtures/c\n\n## Installation\n\n`npm install mock`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Colingo/mock.png\n  [2]: http://travis-ci.org/Colingo/mock\n  [3]: http://ci.testling.com/Colingo/mock.png\n  [4]: http://ci.testling.com/Colingo/mock\n","readmeFilename":"README.md","_id":"mock@0.1.1","dist":{"shasum":"e7e3589c7e6b3376d69f5a3e470b56604417c633","tarball":"https://registry.npmjs.org/mock/-/mock-0.1.1.tgz","integrity":"sha512-eJcWbgoaFUcPqU0g6AcuPKxoe83f7IPALr+dTwCwBN4Iuj4UlLzPtzUlsIpbLVzaXU0CkxP8PvLWKKlFDYdyCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjyiRHmx1NpWl27NiHKJkwkBl7qvAxEYtF3+PyQUNGqAiB2AZBr5xTKR9shQE5XemBQlgyvNnOfhKcj4hHZiMCUcw=="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}]}},"readme":"# mock\n\n[![build status][1]][2]\n\n[![browser support][3]][4]\n\nLoad a module with it's require's mocked out\n\nWorks in both node and browserify\n\n## Example\n\n```js\nvar realB = require(\"./fixtures/b\")\n\nvar b = mock(\"./fixtures/b\", {\n    fs: {\n        readFileSync: function (uri) {\n            if (uri === \"clowns.txt\") {\n                return \"some clowns\"\n            }\n        }\n    }\n    , \"./fixtures/c\": null\n    , \"./fixtures/a\": function () {\n        return 42\n    }\n}, require)\n\n// use b. It's reference to fs and fixtures/a have been replaced with\n// your passed objects\n```\n\nLimitations:\n\n - You have to require the thing your mocking out or browserify\n    won't load it and all it's dependencies into the bundle.\n - When you set a dependency to null your saying don't overload\n    that dependency with this value, but do nuke it from the cache.\n    This is useful when you want to mock out something ./fixtures/c\n    depends on but not touch the implementation of ./fixtures/c\n\n## Installation\n\n`npm install mock`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Colingo/mock.png\n  [2]: http://travis-ci.org/Colingo/mock\n  [3]: http://ci.testling.com/Colingo/mock.png\n  [4]: http://ci.testling.com/Colingo/mock\n\n","maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"time":{"modified":"2022-06-20T01:56:53.830Z","created":"2013-01-23T00:07:51.120Z","0.1.0":"2013-01-23T00:07:51.875Z","0.1.1":"2013-01-29T22:58:09.115Z"},"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Colingo/mock.git"},"users":{"tphummel":true,"koulmomo":true,"leonweecs":true,"he313572052":true}}