code: 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.validateIsUnityRoot()
        scope.createModulesDirectoryInAssets()
        scope.createModuleDirectory()
        scope.copyModuleResources()
      } catch (err) {
        scope.cleanupOnPostInstallError()
        scope.printError(err)
        return 1
      }
      return 0
    }
docs: A simple implementation of postinstall that would be suitable for most packages that only contain git-hosted assets. Returns a falsy value if the routine succeeded.