diff --git a/npm_install.py b/npm_install.py index 09f08be..891dac0 100644 --- a/npm_install.py +++ b/npm_install.py @@ -14,8 +14,8 @@ def get_all_urls_packages(): return list(dict.fromkeys(findall("https://.+.tgz", content))) -def download_npm_package(url:str): - with open(url.split("/")[-1], "wb") as npm_package_file: +def download_npm_package(url:str, path="./"): + with open(path + url.split("/")[-1], "wb") as npm_package_file: npm_package_file.write(requests.get(url))