{"_id":"muk-prop","_rev":"1259022","name":"muk-prop","description":"Mock object methods and properties.","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"time":{"modified":"2021-10-15T06:42:01.000Z","created":"2017-01-21T06:43:50.603Z","1.2.1":"2018-03-26T06:40:01.352Z","2.0.0":"2018-03-26T06:03:42.244Z","1.1.1":"2018-03-04T02:52:56.103Z","1.1.0":"2017-10-29T17:09:36.638Z","1.0.1":"2017-08-10T05:08:10.846Z","1.0.0":"2017-03-02T14:01:57.705Z","0.5.3":"2017-01-21T06:43:50.603Z"},"users":{},"author":{"name":"fent","url":"https://github.com/fent"},"repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"versions":{"1.2.1":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"1.2.1","repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"author":{"name":"fent","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^5.0.0"},"engines":{"node":">=4"},"license":"MIT","files":["lib"],"gitHead":"d08cf4cbb5f22e174b332bd6e37f027a2faace4a","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"homepage":"https://github.com/fent/muk-prop.js#readme","_id":"muk-prop@1.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"40fa3d6e93553b2016a9fb77d8918568c57ae14d","size":2358,"noattachment":false,"key":"/muk-prop/-/muk-prop-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-1.2.1.tgz"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muk-prop_1.2.1_1522046401263_0.752719559120598"},"_hasShrinkwrap":false,"publish_time":1522046401352,"_cnpm_publish_time":1522046401352},"2.0.0":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"2.0.0","repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"author":{"name":"fent","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^5.0.0"},"engines":{"node":">=4"},"license":"MIT","files":["lib"],"gitHead":"267189bcafb25e847def9699d4724fef5a688843","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"homepage":"https://github.com/fent/muk-prop.js#readme","_id":"muk-prop@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"0384a4c7961e69572bd6521858d0f4418f8bb07a","size":2511,"noattachment":false,"key":"/muk-prop/-/muk-prop-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-2.0.0.tgz"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muk-prop_2.0.0_1522044220596_0.3585148150069688"},"_hasShrinkwrap":false,"publish_time":1522044222244,"_cnpm_publish_time":1522044222244},"1.1.1":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"1.1.1","repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"author":{"name":"fent","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^5.0.0"},"engines":{"node":">=4"},"license":"MIT","files":["lib"],"gitHead":"d08cf4cbb5f22e174b332bd6e37f027a2faace4a","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"homepage":"https://github.com/fent/muk-prop.js#readme","_id":"muk-prop@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"fent","email":"fentbox@gmail.com"},"dist":{"shasum":"01341c75a3f32d95ba062eec58b9d2d8683490a3","size":2359,"noattachment":false,"key":"/muk-prop/-/muk-prop-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-1.1.1.tgz"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muk-prop_1.1.1_1520131976052_0.5915662484322706"},"_hasShrinkwrap":false,"publish_time":1520131976103,"_cnpm_publish_time":1520131976103},"1.1.0":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"1.1.0","repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"istanbul":"^0.4.5","mocha":"^4.0.1"},"engines":{"node":">=4"},"license":"MIT","files":["lib"],"gitHead":"f19ce542650232ce23518b21680c5993ac2fb1eb","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"homepage":"https://github.com/fent/muk-prop.js#readme","_id":"muk-prop@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"dist":{"shasum":"583137602c10890a558356a8bfe6de62435d63b4","size":2376,"noattachment":false,"key":"/muk-prop/-/muk-prop-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-1.1.0.tgz"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muk-prop-1.1.0.tgz_1509296975669_0.4011617961805314"},"publish_time":1509296976638,"_hasShrinkwrap":false,"_cnpm_publish_time":1509296976638},"1.0.1":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"1.0.1","repository":{"type":"git","url":"git://github.com/fent/muk-prop.js.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"*","istanbul":"0"},"engines":{"node":">=0.12"},"license":"MIT","files":["lib"],"gitHead":"0e4053a79934ac8ab7cc116b11a95007f6b040dc","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"homepage":"https://github.com/fent/muk-prop.js#readme","_id":"muk-prop@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"dist":{"shasum":"38a087b782ed2687b2df5592a4155040f64d0887","size":2487,"noattachment":false,"key":"/muk-prop/-/muk-prop-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-1.0.1.tgz"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muk-prop-1.0.1.tgz_1502341689788_0.28167852107435465"},"publish_time":1502341690846,"_hasShrinkwrap":false,"_cnpm_publish_time":1502341690846},"1.0.0":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"1.0.0","repository":{"type":"git","url":"git://github.com/fent/node-muk-prop.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"*","istanbul":"0"},"engines":{"node":">=0.12"},"license":"MIT","files":["lib"],"gitHead":"79f3ed7b6f5f7aa9ea89b141c3ec90cf7f72de94","bugs":{"url":"https://github.com/fent/node-muk-prop/issues"},"homepage":"https://github.com/fent/node-muk-prop#readme","_id":"muk-prop@1.0.0","_shasum":"3e81072f66466a378c284610fa31605e9e3f5424","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"3e81072f66466a378c284610fa31605e9e3f5424","size":2499,"noattachment":false,"key":"/muk-prop/-/muk-prop-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/muk-prop-1.0.0.tgz_1488463316979_0.5445286370813847"},"publish_time":1488463317705,"_cnpm_publish_time":1488463317705,"_hasShrinkwrap":false},"0.5.3":{"name":"muk-prop","description":"Mock object methods and properties.","keywords":["test","mock","stub"],"version":"0.5.3","repository":{"type":"git","url":"git://github.com/fent/node-muk-prop.git"},"author":{"name":"Roly Fentanes","url":"https://github.com/fent"},"main":"./lib/index.js","scripts":{"test":"istanbul cover node_modules/.bin/_mocha -- -R spec test/*-test.js"},"directories":{"lib":"./lib"},"devDependencies":{"mocha":"*","istanbul":"0"},"license":"MIT","files":["lib"],"gitHead":"69fb3b432fc541c6d7f34d8f3e4aaef45f6a31e4","bugs":{"url":"https://github.com/fent/node-muk-prop/issues"},"homepage":"https://github.com/fent/node-muk-prop#readme","_id":"muk-prop@0.5.3","_shasum":"27b44bd7cadd4ba6064e117cef87ad83156a3587","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"fent","email":"roly426@gmail.com"},"maintainers":[{"name":"fent","email":"fentbox@gmail.com"},{"name":"popomore","email":""}],"dist":{"shasum":"27b44bd7cadd4ba6064e117cef87ad83156a3587","size":2479,"noattachment":false,"key":"/muk-prop/-/muk-prop-0.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/muk-prop/download/muk-prop-0.5.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/muk-prop-0.5.3.tgz_1484981028656_0.7240952285937965"},"publish_time":1484981030603,"_cnpm_publish_time":1484981030603,"_hasShrinkwrap":false}},"readme":"# muk-prop.js\n\n[![Build Status](https://secure.travis-ci.org/fent/muk-prop.js.svg)](http://travis-ci.org/fent/muk-prop.js)\n[![Dependency Status](https://david-dm.org/fent/muk-prop.js.svg)](https://david-dm.org/fent/muk-prop.js)\n[![codecov](https://codecov.io/gh/fent/muk-prop.js/branch/master/graph/badge.svg)](https://codecov.io/gh/fent/muk-prop.js)\n\n![muk](muk.gif)\n\n# Usage\n\nObject method mocking.\n\n```js\nconst fs = require('fs');\nconst muk = require('muk-prop');\n\nmuk(fs, 'readFile', (path, callback) => {\n  process.nextTick(callback.bind(null, null, 'file contents here'));\n});\n```\n\nCheck if member has been mocked.\n\n```js\nmuk.isMocked(fs, 'readFile'); // true\n```\n\nRestore all mocked methods after tests.\n\n```js\nmuk.restore();\n\nfs.readFile(file, (err, data) => {\n  // will actually read from `file`\n});\n```\n\n\n# Install\n\n    npm install muk-prop\n\n\n# Tests\nTests are written with [mocha](https://mochajs.org)\n\n```bash\nnpm test\n```\n","_attachments":{},"homepage":"https://github.com/fent/muk-prop.js#readme","bugs":{"url":"https://github.com/fent/muk-prop.js/issues"},"license":"MIT"}