{"_id":"mz-modules","_rev":"222658","name":"mz-modules","description":"modernize node.js modules to current ECMAScript standards","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"time":{"modified":"2021-06-03T15:40:55.000Z","created":"2017-02-09T10:16:19.737Z","2.1.0":"2018-02-13T12:08:04.514Z","2.0.0":"2017-08-23T03:18:46.533Z","1.0.0":"2017-02-09T10:16:19.737Z"},"users":{},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/mz-modules.git"},"versions":{"2.1.0":{"name":"mz-modules","version":"2.1.0","description":"modernize node.js modules to current ECMAScript standards","dependencies":{"glob":"^7.1.2","ko-sleep":"^1.0.3","mkdirp":"^0.5.1","pump":"^3.0.0","rimraf":"^2.6.1"},"devDependencies":{"autod":"^2.9.0","egg-bin":"^4.1.0","egg-ci":"^1.8.0","eslint":"^4.5.0","eslint-config-egg":"^5.0.0","mm":"^2.1.0","mz":"^2.6.0","stat-mode":"^0.2.2","supertest":"^3.0.0","webstorm-disable-index":"^1.2.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","dev":"egg-bin dev","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"files":["lib","index.js","glob.js","mkdirp.js","rimraf.js","setImmediate.js","nextTick.js","sleep.js","pump.js"],"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/mz-modules.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"1f8e4cd8bb894c4c0f4d4f2832b1f83671ae53d7","bugs":{"url":"https://github.com/node-modules/mz-modules/issues"},"homepage":"https://github.com/node-modules/mz-modules#readme","_id":"mz-modules@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"7f529877afd0d42f409a7463b96986d61cfbcf96","size":3402,"noattachment":false,"key":"/mz-modules/-/mz-modules-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mz-modules/download/mz-modules-2.1.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mz-modules_2.1.0_1518523684334_0.1651004960859903"},"_hasShrinkwrap":false,"publish_time":1518523684514,"_cnpm_publish_time":1518523684514},"2.0.0":{"name":"mz-modules","version":"2.0.0","description":"modernize node.js modules to current ECMAScript standards","dependencies":{"glob":"^7.1.2","ko-sleep":"^1.0.3","mkdirp":"^0.5.1","rimraf":"^2.6.1"},"devDependencies":{"autod":"^2.9.0","egg-bin":"^4.1.0","egg-ci":"^1.8.0","eslint":"^4.5.0","eslint-config-egg":"^5.0.0","mm":"^2.1.0","mz":"^2.6.0","stat-mode":"^0.2.2","supertest":"^3.0.0","webstorm-disable-index":"^1.2.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","dev":"egg-bin dev","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"files":["lib","index.js","glob.js","mkdirp.js","rimraf.js","setImmediate.js","nextTick.js","sleep.js"],"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/mz-modules.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"fc5c9d7ff93cc4dd61e1cd97f0582a8f79b65c70","bugs":{"url":"https://github.com/node-modules/mz-modules/issues"},"homepage":"https://github.com/node-modules/mz-modules#readme","_id":"mz-modules@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"47b2c35a24de604db91df502dcb3a7252dd229d5","size":3173,"noattachment":false,"key":"/mz-modules/-/mz-modules-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mz-modules/download/mz-modules-2.0.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mz-modules-2.0.0.tgz_1503458326364_0.5108074829913676"},"directories":{},"publish_time":1503458326533,"_hasShrinkwrap":false,"_cnpm_publish_time":1503458326533},"1.0.0":{"name":"mz-modules","version":"1.0.0","description":"modernize node.js modules to current ECMAScript standards","dependencies":{"glob":"^7.1.1","ko-sleep":"^1.0.2","mkdirp":"^0.5.1","rimraf":"^2.5.4"},"devDependencies":{"autod":"^2.7.1","egg-bin":"^2.0.2","egg-ci":"^1.1.0","eslint":"^3.15.0","eslint-config-egg":"^3.2.0","mm":"^2.1.0","mz":"^2.6.0","stat-mode":"^0.2.2","supertest":"^3.0.0","webstorm-disable-index":"^1.1.2"},"engines":{"node":">=4.0.0"},"scripts":{"autod":"autod","lint":"eslint .","dev":"egg-bin dev","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov"},"files":["lib","index.js","glob.js","mkdirp.js","rimraf.js","setImmediate.js","nextTick.js","sleep.js"],"ci":{"version":"4, 6, 7"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/mz-modules.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"622bda2e891dc8c8f6886ae05a0bfb87e6e89ca3","bugs":{"url":"https://github.com/node-modules/mz-modules/issues"},"homepage":"https://github.com/node-modules/mz-modules#readme","_id":"mz-modules@1.0.0","_shasum":"c8d1be41e1a529e53524385144d0e70b8825d338","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"c8d1be41e1a529e53524385144d0e70b8825d338","size":3038,"noattachment":false,"key":"/mz-modules/-/mz-modules-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mz-modules/download/mz-modules-1.0.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mz-modules-1.0.0.tgz_1486635379520_0.5878674124833196"},"directories":{},"publish_time":1486635379737,"_cnpm_publish_time":1486635379737,"_hasShrinkwrap":false}},"readme":"# mz-modules\n\nSame as [mz], but wrap many popular modules rather than core API.\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/mz-modules.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/mz-modules\n[travis-image]: https://img.shields.io/travis/node-modules/mz-modules.svg?style=flat-square\n[travis-url]: https://travis-ci.org/node-modules/mz-modules\n[codecov-image]: https://codecov.io/gh/node-modules/mz-modules/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/node-modules/mz-modules\n[david-image]: https://img.shields.io/david/node-modules/mz-modules.svg?style=flat-square\n[david-url]: https://david-dm.org/node-modules/mz-modules\n[snyk-image]: https://snyk.io/test/npm/mz-modules/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/mz-modules\n[download-image]: https://img.shields.io/npm/dm/mz-modules.svg?style=flat-square\n[download-url]: https://npmjs.org/package/mz-modules\n\nNode require `>= 4.0.0`\n\n## Usage\n\nInstall it\n\n```bash\n$ npm i mz-modules\n```\n\nRequire it\n\n```js\nconst mkdirp = require('mz-modules/mkdirp');\n```\n\nYou can also require it from the main entry, but it will load other modules in mz-modules.\n\n```js\nconst mkdirp = require('mz-modules').mkdirp;\n```\n\nUse it\n\n```js\n// Using promise\nmkdirp('/path/to/dir').then(() => console.log('done'));\n\n// Or if you are using async function\nasync function doSomething() {\n  await mkdirp('/path/to/dir');\n}\n```\n\n**Warning:** nextTick and setImmediate is little slower than callback, because promise queue is after nextTick.\n\n## Modules\n\n- `mz-modules/mkdirp` wrapped [mkdirp]\n- `mz-modules/rimraf` wrapped [rimraf]\n- `mz-modules/glob` wrapped [glob]\n- `mz-modules/sleep` wrapped [ko-sleep]\n- `mz-modules/nextTick` wrapped process.nextTick\n- `mz-modules/setImmediate` wrapped setImmediate\n- `mz-modules/pump` wrapped [pump]\n\n## Contribute\n\nYou can request adding module to mz-modules\n\n1. [Create a issue](https://github.com/node-modules/mz-modules/issues) let us know why you want to add the module.\n1. Add a module, named `xx`\n  - create `xx.js` that exports a function should return promise.\n  - require `xx.js` in `index.js`\n  - add a testcase for it in `test/xx.test.js`\n  - add xx.js to files in `package.json`\n1. Create a pull request\n\n## License\n\n[MIT](LICENSE)\n\n[mz]: https://github.com/normalize/mz\n[mkdirp]: https://github.com/substack/node-mkdirp\n[rimraf]: https://github.com/isaacs/rimraf\n[ko-sleep]: https://github.com/alsotang/ko-sleep\n[glob]: https://github.com/isaacs/node-glob\n[pump]: https://github.com/mafintosh/pump\n","_attachments":{},"homepage":"https://github.com/node-modules/mz-modules#readme","bugs":{"url":"https://github.com/node-modules/mz-modules/issues"},"license":"MIT"}