Uninstall node modules from JavaScript.
npm install uninstall-package
import uninstall from 'uninstall-package';
uninstall('co', '--save').then(result => {
console.log(result.stdout);
console.log(result.stderr);
});
uninstall(packages, [args], [options])
Type: String
, Array<String>
Type: String
, Array<String>
, Object
Type: Object