require-from-google-drive
v1.0.1
Published
Load and execute code modules directly from Google Drive — just like require(), but from the cloud.
Readme
📁 require-from-google-drive
Load and execute JavaScript modules directly from Google Drive — just like require(), but from the cloud.
require-from-google-drive lets you fetch JavaScript files from Google Drive by their file ID, compile them on the fly, and use them as normal Node.js modules. Perfect for plugin systems, script injection, or loading code remotely without deployments.
📦 Installation
npm install require-from-google-drive🚀 Usage
const requireFromDrive = require('require-from-google-drive');
(async () => {
// Replace with your actual Google Drive file ID and access token
const fileId = 'your-google-drive-file-id';
const accessToken = 'your-oauth-access-token';
const module = await requireFromDrive(fileId, accessToken);
// Use the exported module
module(); // or module.run(), depending on your module's export
})();🏷️ Keywords
require, google, drive
🪪 License
MIT © Usmana Khalid
