lib/index.js
function (name, pkgDir) {
    if (!isString(name) || !isString(pkgDir) ||
        S(name).isEmpty() || S(pkgDir).isEmpty() || !isDirectory.sync(pkgDir)) {
      return 1
    }
    var scope = utils(name, pkgDir)
    try {
      scope.removeModuleDirectory()
    } catch (err) {
      scope.printError(err)
      return 1
    }
    return 0
  }
function (name, pkgDir) {
    if (!isString(name) || !isString(pkgDir) ||
        S(name).isEmpty() || S(pkgDir).isEmpty() || !isDirectory.sync(pkgDir)) {
      return 1
    }
    var scope = utils(name, pkgDir)
    try {
      scope.removeModuleDirectory()
    } catch (err) {
      scope.printError(err)
      return 1
    }
    return 0
  }
function ( name , pkgDir ) { if ( ! isString ( name ) || ! isString ( pkgDir ) || S ( name ) . isEmpty ( ) || S ( pkgDir ) . isEmpty ( ) || ! isDirectory . sync ( pkgDir ) ) { return 1 } var scope = utils ( name , pkgDir ) try { scope . removeModuleDirectory ( ) } catch ( err ) { scope . printError ( err ) return 1 } return 0 }
A simple implementation of postuninstall that would be suitable for most packages that only contain git-hosted assets. Returns a falsy value if the routine succeeded.
A simple implementation of postuninstall that would be suitable for most packages that only contain git - hosted assets . Returns a falsy value if the routine succeeded .