def getPackagePath(self, npm, dir):
        dir = os.path.dirname(dir)

        if 3 <= len(dir):
            return False

        if sublime.platform() == 'windows':
            fn = dir + '\\node_modules\\' + npm + '\\package.json'
        else:
            fn = dir + '/node_modules/' + npm + '/package.json'

        if os.path.exists(fn):
            # get info
            return fn
        else:
            # move up dir, and call again
            return self.getPackagePath(npm, dir)
dataset/ETHPy150Open dsteinbach/npm-info/NPMInfo.py/NPMInfoEvents.getPackagePath/swapped operands of `<=`