def METHOD_NAME(path):
    def json_deps(jsondata):
        ret = {}
        deps = jsondata.get('dependencies', {})
        for key in deps.keys():
            key = key.lower()
            devonly = deps[key].get('dev', False)
            if not devonly:
                if key not in ret.keys():
                    depname = key.replace('/', '-')
                    if depname[0] == '@':
                        depname = depname[1:]
                    ret[depname] = {'name': depname, 'version': deps[key]['version']}
                    ret.update(json_deps(deps[key]))
        return ret
    with open('%s/package-lock.json' % path) as f:
        jsondata = json.load(f)
        return json_deps(jsondata)