{"_id":"voy","_rev":"4-c73c641afa128df78a71f0446773cf0f","name":"voy","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"voy","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Army-U","email":"wuchengkai0@gmail.com"},"license":"MIT","_id":"voy@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"army-u","email":"wuchengkai0@gmail.com"},"dist":{"integrity":"sha512-PX6nDt5HDSwyOAWDnuV3zfKrNpRxUuFevwRJYzlIjzE+gIlQf8hAKuYkDyLC0w8hJeSqzPCWLdiJ/lho7etm4g==","shasum":"ffecee8a942f1a2dae7d8b17719104db28cc564b","tarball":"https://registry.npmjs.org/voy/-/voy-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7s85sQPX682dDy6UgoNWWU2+Mi2cF+9l2ZWlgYe3IkAiEAnioLNY4xywja0jYJ7wMrKlY50+ZsHlWnls489ChG7MA="}]},"maintainers":[{"name":"army-u","email":"wuchengkai0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/voy-0.0.1.tgz_1511366969592_0.050880108028650284"},"directories":{}},"0.0.1-rc":{"name":"voy","version":"0.0.1-rc","description":"Bulk modify dependencies","preferGlobal":true,"bin":{"voy":"bin/voy"},"main":"index.js","scripts":{"lint":"eslint *.js","dev":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/Army-U/voy.git"},"keywords":["npm"],"author":{"name":"Army-U","email":"wuchengkai0@gmail.com"},"license":"MIT","dependencies":{"chalk":"2.3.0","debug":"3.1.0","fs-extra":"4.0.2","yargs":"10.0.3"},"devDependencies":{"eslint":"4.11.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.8.0","eslint-plugin-node":"5.2.1","eslint-plugin-promise":"3.6.0","eslint-plugin-standard":"3.0.1"},"gitHead":"0364469f80a8372cf226a2c14cbb5b5c04fb6ca2","bugs":{"url":"https://github.com/Army-U/voy/issues"},"homepage":"https://github.com/Army-U/voy#readme","_id":"voy@0.0.1-rc","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"army-u","email":"wuchengkai0@gmail.com"},"dist":{"integrity":"sha512-zX6DLt7rkURBtAhnqCrafqBHyodifppHplCMBOeB/QHVg3+HUoCIuZKXvh89cmJM9J3QRlKYEdPeuxE1dX2neQ==","shasum":"2384f9b51c3e5de1333910817b421387eb8d405a","tarball":"https://registry.npmjs.org/voy/-/voy-0.0.1-rc.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsDV+Ch80q5ST5X5V1TuY56uZJQv5q1oF5YLenginHxAIhAOUEsL8jXfjoJnwN0Isy4lOi29aE7G1x/K7njvM32bC5"}]},"maintainers":[{"name":"army-u","email":"wuchengkai0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/voy-0.0.1-rc.tgz_1511535644215_0.39338022423908114"},"directories":{}},"0.0.2":{"name":"voy","version":"0.0.2","description":"Bulk modify dependencies","preferGlobal":true,"bin":{"voy":"bin/voy"},"main":"index.js","scripts":{"lint":"eslint *.js","dev":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/Army-U/voy.git"},"keywords":["npm"],"author":{"name":"Army-U","email":"wuchengkai0@gmail.com"},"license":"MIT","dependencies":{"chalk":"2.3.0","debug":"3.1.0","fs-extra":"4.0.2","yargs":"10.0.3"},"devDependencies":{"eslint":"4.11.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.8.0","eslint-plugin-node":"5.2.1","eslint-plugin-promise":"3.6.0","eslint-plugin-standard":"3.0.1"},"gitHead":"ea2043010b559b42a827722ef603cbddd301745e","bugs":{"url":"https://github.com/Army-U/voy/issues"},"homepage":"https://github.com/Army-U/voy#readme","_id":"voy@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"army-u","email":"wuchengkai0@gmail.com"},"dist":{"integrity":"sha512-OdQ0T4YUxEzm8E7afwa0mBIl4r1/Fv2DtcVxvHDgZNHSF35v6fSNqmAsrtXZ/dMSABq7oJWcm4zSbzOyBn7AUA==","shasum":"478b2288a7dfe5c4eacc6e129467dce2cc84a962","tarball":"https://registry.npmjs.org/voy/-/voy-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESZVs1n86Th0Yx+hsoW5k3skepmShben3v2qzLWqLSvAiEA/wbdw2uyR757Tg1+Ph8WfLZgihMIDLAuaALG7WHtxDc="}]},"maintainers":[{"name":"army-u","email":"wuchengkai0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/voy-0.0.2.tgz_1511753397309_0.8642324875108898"},"directories":{}},"0.0.3":{"name":"voy","version":"0.0.3","description":"Bulk modify dependencies","preferGlobal":true,"bin":{"voy":"bin/voy"},"main":"dist/index.js","scripts":{"lint":"tslint -c tslint.json '*.ts'","dev":"tsc -w","test":"jest","build":"rm -rf dist/ && tsc"},"repository":{"type":"git","url":"git+https://github.com/Army-U/voy.git"},"keywords":["npm"],"author":{"name":"Army-U","email":"wuchengkai0@gmail.com"},"license":"MIT","dependencies":{"@types/debug":"0.0.30","@types/fs-extra":"5.0.2","chalk":"2.3.0","debug":"3.1.0","fs-extra":"4.0.2","yargs":"10.0.3"},"devDependencies":{"@types/chalk":"2.2.0","@types/node":"10.1.0","jest":"22.4.3","tslint":"5.10.0","tslint-config-standard":"7.0.0","typescript":"2.8.3"},"gitHead":"f9271232f1ed440b9bf816e50377e8fbfad8a5cc","bugs":{"url":"https://github.com/Army-U/voy/issues"},"homepage":"https://github.com/Army-U/voy#readme","_id":"voy@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"army-u","email":"wuchengkai0@gmail.com"},"dist":{"integrity":"sha512-JYNYSXw3tM0Flw8wHXWduUUU43vWso/pOHQNgtlXgOKrL+v3MLOyX1XOBRdPvV1PyrcE/3M0Sn41ewxm7iezUQ==","shasum":"19f02fbeed56e3d8f75bb176d6bffaea7995850a","tarball":"https://registry.npmjs.org/voy/-/voy-0.0.3.tgz","fileCount":3690,"unpackedSize":14937340,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/UGSCRA9TVsSAnZWagAAos8P+wcqU5AWcv6BwA0Rocw7\n8YKnz7kId8Ch+SYw8vHEa808Egk+wBnVNm9uKcwqE53oHCebJM0m7xLr0mvv\noKPMHduO0E3F4g+mL08LXZ5dPjrgY3X2R9zik2PuZZYVVv6XNtiemW3gDzSe\nPSAa4mPXUyXpkmTl8nk9ye0+/oQI4zBWjqFhQiJXvejbYshJjR6N7XZq4Jep\nVg4YJ0uOkHkPjlvGiweU2kt5AqZWuAI6M1PPSiSPspmMEs0zygX2eBUxj1Dn\naDDLPytcfvTRD+84aGpNxQW1ssLAPJyaZdXBIcKAJm9+UmEeUC3X0sZek/im\ny1z+FoNG7Hnf+kbzy+FfMwDmrP6qVJeL4yfLxr+/Ks3TcW0i8PdEqlqc4Qkt\nfMgZ5nXECzwqA0hqEM2JgHdfKUNMAtqyFtTLETy74/GSx78ukAj7FXpYn80a\nyRo1iZQ4ZVcOvQLKriPNKUCbJjhmRD5409w5y4aSetS4HoDx6h6+My33rdNA\niRpw5QKd9PPJLTQ9Ytvn+DewOCs2MgRLrE03qjGpobjBPbm4guDfLdtK7muQ\nxvwyJ299zdyYmbRquf0EKJwA6nZeHdVTUe91TQQhxB35Hhd4Dke9lU5qwiIh\nMlYjMBC9vJ9MlHDmqRWO76Xjv5az+mVgHAHaS+jeRojLmhbh7d6MjQCivRbq\nQUwZ\r\n=S70e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBDYHL7+GqIubr17Qd/iEULKkvwOgLQD9wcbfFwzxutwIgHDtcTsR12VJwDUFLabNRKKXhFHp1652EfqwtgAEhtT8="}]},"maintainers":[{"name":"army-u","email":"wuchengkai0@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/voy_0.0.3_1526546832831_0.8152676356273336"},"_hasShrinkwrap":false}},"readme":"# Voy [![Build Status](https://img.shields.io/circleci/project/github/Army-U/voy.svg?style=flat-square)](https://circleci.com/gh/Army-U/voy) [![npm package](https://img.shields.io/npm/v/voy.svg?style=flat-square)](https://www.npmjs.com/package/voy)\n\nBatch modify the NPM dependent CLI tools, simplify the module uninstall and migration operations. [中文文档](README.zh-cn.md)\n\n![Voy](https://user-images.githubusercontent.com/11404005/40111668-209fa756-5936-11e8-8b52-4333a687aa4f.png)\n\n## Quick Start\n\n``` bash\n$ npx voy rm <match-rule> [options]\n$ npx voy mg <match-rule> [options]\n```\n\nExamples:\n\n``` bash\n$ npx voy rm ^eslint -D   # remove package which's name start with `eslint` in `devDependencies`\n$ npx voy mg '^(?!react)' # remove package which's name not start with `react` in `dependencies`\n$ npx voy rm loader$ -D   # remove package which's name end with `loader` in `devDependencies`\n```\n\n## Options\n\nName: `match-rule`<br>\nType: `RegExp|string`<br>\nOptions: `all`\n\nModule corresponding to name matching, Can be regular expressions or the string that matching all modules.\n\nName: `options`<br>\nType: `string`<br>\nOptions: `-D`\n\nWhether it works on the `devDependencies` field in `package.json`, which is consistent with the `npm I package -D` in NPM.\n\n## Batch delete module\n\nBatch deletion uses the `voy rm` command to receive a regular expression or a string valued at `all` as a parameter. Such as:\n\n```bash\n$ npx voy rm babel\n```\n\nThe above command delete all the module in the `package.json` `dependencies` which's name including the `babel`. If you want to delete the module in `devDependencies`, you need to add a `-D` parameter. Such as:\n\n```bash\n$ npx voy rm babel -D\n```\n\nIf you want to uninstall all the modules in the `dependencies`, you can do it directly through the `all` command.\n\n```bash\n$ npx voy rm all\n```\n\n## Batch migration module\n\nModule migration refers to the switch between `dependencies` and `devDependencies` locations that depend on `package.json`. For example, when the `eject` command is executed in the `create-react-app` generated project, all the modules will exist in the `dependencies` module. Execution at this time:\n\n```bash\n$ npx voy mg '^(?!react)'\n```\n\nYou can transfer all the `dependencies` modules which' name don't start with `React` to the `devDependencies` field.\n\nOf course, you can transfer all modules from `devDependencies` to the `dependencies` field.\n\n```bash\n$ npx voy mg all -D\n```\n\n## Using in node\n\n```bash\n$ npm i voy -S\n```\n\n### Options\n\nName: filter<br>\nType: `RegExp`\n\nName: field<br>\nType: `string`<br>\nOptions: `dep|dev`\n\n### Examples\n\n```js\nconst voy = require('voy')\nvoy({ filter: /loader$/, field: 'dep' }).rm()\nvoy({ filter: /vue/ }).mg()\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2017-present, Army-U\n","maintainers":[{"name":"army-u","email":"wuchengkai0@gmail.com"}],"time":{"modified":"2022-05-23T10:34:22.939Z","created":"2017-11-22T16:09:29.792Z","0.0.1":"2017-11-22T16:09:29.792Z","0.0.1-rc":"2017-11-24T15:00:44.307Z","0.0.2":"2017-11-27T03:29:57.472Z","0.0.3":"2018-05-17T08:47:13.256Z"},"keywords":["npm"],"author":{"name":"Army-U","email":"wuchengkai0@gmail.com"},"license":"MIT","readmeFilename":"README.md","description":"Bulk modify dependencies","homepage":"https://github.com/Army-U/voy#readme","repository":{"type":"git","url":"git+https://github.com/Army-U/voy.git"},"bugs":{"url":"https://github.com/Army-U/voy/issues"}}