
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@william-pack/googleapis
Advanced tools
A serverless API that integrates with Google Drive and Firebase Realtime Database to manage file storage and real-time data synchronization. Built for seamless authentication, secure data handling, and efficient cloud operations.
fetch
for HTTP requestsInstall via npm:
npm install @william-pack/googleapis
or using bun:
bun add @william-pack/googleapis
ESM
import { GoogleAuth } from "@william-pack/googleapis";
CommonJS
const { GoogleAuth } = require("@william-pack/googleapis");
Support Google Service Account only
const auth = new GoogleAuth({
credential: {
project_id: "your_project_id",
private_key: "your_private_key",
client_email: "your_client_email"
}
});
import { GoogleDrive } from "@william-pack/googleapis";
const drive = new GoogleDrive( auth, ['your_google_drive_folder_id'] );
const file = new File(["Hello World"], "hello.txt", { type: "text/plain" });
await drive.create( file );
// return id: string
await drive.remove("your_file_id");
// return file is removed: true | false
await drive.findAll();
// return files: { id:string, name: string }[]
import { GoogleDatabase } from "@william-pack/googleapis";
const database = new GoogleDatabase( auth, "your_database_url" );
await database.create("/path/to/data", { key: "value" });
// return your data
type save data
await database.create<{ key: type }>("/path/to/data", { username:"..." })
await database.remove("/path/to/data");
// return data is removed: true | false
await database.findAll("/path/to/data");
// reurn data
type save response
await database.findAll<{ key: type }>("/path/to/data");
await database.query("/path/to/data", {
orderBy: "your_data_key",
equalTo: "your_data_value"
});
// return data
type save response
await database.query<{ key: type }>("/path/to/data", {
orderBy: "your_data_key",
equalTo: "your_data_value"
});
await database.transaction("/path/to/data", ( currentData ) => {
return { ...currentData, updatedKey: "newValue" };
});
// return data
type save data
await database.transaction<{ key: type }>("/path/to/data", ( currentData ) => {
return { ...currentData, updatedKey: "newValue" };
});
This project is licensed under the MIT License.
FAQs
A serverless API that integrates with Google Drive and Firebase Realtime Database to manage file storage and real-time data synchronization. Built for seamless authentication, secure data handling, and efficient cloud operations.
The npm package @william-pack/googleapis receives a total of 57 weekly downloads. As such, @william-pack/googleapis popularity was classified as not popular.
We found that @william-pack/googleapis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.