Socket
Socket
Sign inDemoInstall

mm

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mm - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

History.md
0.0.4 / 2012-11-13
==================
* add mm() just like muk() does
0.0.3 / 2012-11-06

@@ -3,0 +8,0 @@ ==================

4

lib/mm.js

@@ -17,2 +17,6 @@ /*!

exports = module.exports = function mock(obj, key, method) {
return muk.apply(null, arguments);
};
/**

@@ -19,0 +23,0 @@ * Mock async function error.

2

package.json
{
"name": "mm",
"version": "0.0.3",
"version": "0.0.4",
"description": "mock mate, mock http request, fs access and so on.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -89,2 +89,13 @@ mm (美眉,Mock伴侣) [![Build Status](https://secure.travis-ci.org/fengmk2/mm.png)](http://travis-ci.org/fengmk2/mm)

### use `mm` just like [`muk`](https://github.com/fent/node-muk)
```js
var fs = require('fs');
var mm = require('mm');
mm(fs, 'readFile', function (path, callback) {
process.nextTick(callback.bind(null, null, 'file contents here'));
});
```
## License

@@ -91,0 +102,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc