| Total Complexity | 4 |
| Complexity/F | 2 |
| Lines of Code | 21 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 6 | const uninstall = require('spawn-npm-install').uninstall |
||
| 7 | const Plugins = require('../../util/Plugins') |
||
| 8 | const output = require('../../output') |
||
| 9 | |||
| 10 | module.exports = function (name) { |
||
| 11 | if (name.indexOf('cli-') < 0) { |
||
| 12 | name = '@includable/cli-' + name |
||
| 13 | } |
||
| 14 | |||
| 15 | uninstall(name, { |
||
| 16 | cwd: Plugins.directory, |
||
| 17 | noShrinkwrap: true, |
||
| 18 | production: true, |
||
| 19 | noBinLinks: true, |
||
| 20 | save: true |
||
| 21 | }, function (err) { |
||
| 22 | if (err) { |
||
| 23 | output.errSimple(err.message) |
||
| 24 | } |
||
| 25 | }) |
||
| 26 | } |
||
| 27 |