
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Google Drive API client for Web Application.
CAUTION:
After v2.0.0, The API loadApi is changed. It needs clientSecret at its second
parameter instead of apiKey.
It is needed to clear the cookies of the web pages running by command npm start
or
npm run web-test
. On the pages, the API key has been saved to cookies to connect
Google drive APIs.
A brief explanation is described in a documet for the class Gdfs.
loadApi(clientId, clientSecret)
loads Google Drive APIs(v3) and initializes its client.isSignedIn()
tests the client is signed-in to the Google Drive.signIn()
signs-in with a Google Account.signOut()
signs-out.chdir(directory)
changes the current working directory.cwd()
- returns the current working directory.isDirectory(path)
tests the path is a directory.mkdir(path)
creates a folder.readdir(path, options)
lists file names.readFile(path)
read the file contents.rmdir(path)
removes the directory.stat(path)
returns properties of Google Drive files.unlink(path)
removes the file (without moving to the trash-box).writeFile(path, mimeType, data)
writes data to the file.To install, use npm for your project.
$ npm install --save gdrive-fs
If you are using some bundler, you can just import this module and use.
const Gdfs = require("gdrive-fs");
Gdfs.loadApi(
.
.
.
If you do not use any bundler, the following built files are available to include by SCRIPT tag.
node_module/gdrive-fs/build/grive-fs.min.js
node_module/gdrive-fs/build/grive-fs.js
<!DOCTYPE html>
<html>
<head>
...
<script src="<path-to-gdrive-fs>/build/gdrive-fs.min.js"></script>
</body>
$ npm run release
This module published under MIT LICENSE.
FAQs
Google Drive file system for Web App.
We found that gdrive-fs demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.