
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
A simple ngdrive utitily to download files from gdrive folders recursively into local machine.
Google allows/supports accessing google drive files via API. Below steps are pre-requisites to do the same.
OAuth consent screen
App Info:
App Domain:
Authorized domains:
Developer contact information
Scope
Test users
Add this line to your application's Gemfile:
gem 'googledrive'
And then execute:
$ bundle
Or install it yourself as:
$ gem install googledrive
require 'googledrive'
gd = Ngdrive::GdriveUtil.new
gd.download_files
Above lines will pickup the files/folders present in the gdrive.folder_id value in settings.yml and download all files recursively into ./downloads folder along with their respective folder names.
google drive maintains a session (via token) valid for a certain amount of time. This session is based on a token and will expire after the duration.
each time a request is made to google drive via API, it needs this token to allow google drive to continue accessing.
First time when 'Ngdrive::GdriveUtil.new' is run, the gem does below steps:
once token.yaml file is created, accessing and downloading googledrive files is as simple as running: gd.download_files
FAQs
Unknown package
We found that ngdrive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.