node-gdrive
Upload file to google drive
Installation
With npm do:
npm install node-gdrive
Use command line global:
npm install node-gdrive -g
Config
gdrive token:get # generator new token
Usage
Node project
// upload fileconst Upload Download = ;let filePath = 'foo.txt';var upload = filePath share: true;upload;// Download filelet fileId = "1eoAgH8xgBkkUDXkTdyPSHSbaJViv33oX";var download = ;download;
Commands line
gdrive upload file.txt --share user@gmail.com # upload and share filegdrive donwload 1eoAgH8xgBkkUDXkTdyPSHSbaJViv33oX # download filegdrive --help
License
MIT