Download and upload file on google drive with NodeJS – easy as cake! 🍰✉️
Steps to run locally
-
Clone the repo
git clone https://github.com/MWaris97/drive-upload-nodejs.git
-
Install NPM packages
npm install
-
Follow my article to setup service account on google and download json file
-
Place the json file in the your working directory
- view all the files
node loco.js list
- upload a file
node loco.js upload <filename>
- update the file
node loco.js update <filename> <file_id>
- download the file
node loco.js update <filename> <file_id>
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request