A library to fetch metadata for publicly shared Google Drive items, version 1.2.0. It takes a Google Drive URL or file ID and returns information such as filename, size, download URL, thumbnail, and scan status. Releases are infrequent; the last update was in 2020. Unlike other Google Drive API wrappers, this does not require authentication and works solely with publicly shared files. It uses a lightweight approach with no external runtime dependencies beyond Node.js built-in fetch (or polyfill). The library is ESM-only since version 1.x.
npm install gdrive-file-infoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches metadata for a publicly shared Google Drive file and logs its properties.
Ensure the Google Drive item is shared with 'Anyone with the link can view'.
Check if thumbnailUrl returns a non-empty string before using it.
Use Node.js 10+ and import syntax; require() is not supported.
Use async/await with thumbnailUrl calls.
Install with 'npm install gdrive-file-info' and use 'import { fetchInfo } from 'gdrive-file-info';'Use 'import { fetchInfo } from 'gdrive-file-info';' (named export).Check the URL/ID and ensure the file is shared publicly (Anyone with link can view).
Provide a valid Google Drive share URL (e.g., https://drive.google.com/open?id=...) or a raw file ID.
No dependency data recorded yet.