docs: function (opts) {
      var name
      if (opts && opts.name) name = opts.name
      if (opts && opts.package && opts.package.name) name = opts.package.name
      if (!name) throw new TypeError('package name missing')
      opts = defaults(opts, {
        nodeModulesDir: path.resolve(process.cwd(), 'node_modules')
      })
      fs.removeSync(path.resolve(opts.nodeModulesDir, name))
      if (opts.targetPackage) {
        var key = opts.isDev ? 'devDependencies' : 'dependencies'
        var targetPackage = JSON.parse(fs.readFileSync(opts.targetPackage))
        delete targetPackage[key][name]
        fs.writeFileSync(opts.targetPackage, JSON.stringify(targetPackage, null, 2))
      }
    }