{"id":16636764,"url":"https://github.com/takamin/gdrive-fs","last_synced_at":"2025-10-30T07:30:25.799Z","repository":{"id":33066593,"uuid":"136466491","full_name":"takamin/gdrive-fs","owner":"takamin","description":"The integrated user inteface of Google Drive File System on HTML5","archived":false,"fork":false,"pushed_at":"2023-07-18T20:19:27.000Z","size":4086,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-10T13:53:32.160Z","etag":null,"topics":["filesystem","google-drive","npm","webapp"],"latest_commit_sha":null,"homepage":"https://takamints.hatenablog.jp/entry/google-drive-file-system-for-web-app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takamin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-07T11:19:36.000Z","updated_at":"2022-11-16T16:37:19.000Z","dependencies_parsed_at":"2023-01-14T23:14:50.855Z","dependency_job_id":null,"html_url":"https://github.com/takamin/gdrive-fs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fgdrive-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fgdrive-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fgdrive-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fgdrive-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takamin","download_url":"https://codeload.github.com/takamin/gdrive-fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219866045,"owners_count":16555913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem","google-drive","npm","webapp"],"created_at":"2024-10-12T06:22:45.717Z","updated_at":"2025-10-30T07:30:25.433Z","avatar_url":"https://github.com/takamin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"gdrive-fs\n=========\n\n[![Build Status](https://travis-ci.org/takamin/gdrive-fs.svg?branch=master)](https://travis-ci.org/takamin/gdrive-fs)\n\nGoogle Drive API client for Web Application.\n\n__CAUTION:__\nAfter v2.0.0, The API loadApi is changed. It needs clientSecret at its second\nparameter instead of apiKey.\nIt is needed to clear the cookies of the web pages running by command `npm start` or\n`npm run web-test`. On the pages, the API key has been saved to cookies to connect\nGoogle drive APIs.\n\nA brief explanation is described in a documet for the class\n[Gdfs](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs.html).\n\nAPIs\n----\n\n* Class [Gdfs](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs.html) as a client of the Google Drive file system.\n    * Class methods\n        * async [`loadApi(clientId, clientSecret)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#.loadApi) loads Google Drive APIs(v3) and initializes its client.\n        * [`isSignedIn()`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#.isSignedIn) tests the client is signed-in to the Google Drive.\n        * async [`signIn()`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#.signIn) signs-in with a Google Account.\n        * async [`signOut()`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#.signOut) signs-out.\n    * Instance methods\n        * async [`chdir(directory)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#chdir) changes the current working directory.\n        * [`cwd()`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#cwd) - returns the current working directory.\n        * async [`isDirectory(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#isDirectory) tests the path is a directory.\n        * async [`mkdir(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#mkdir) creates a folder.\n        * async [`readdir(path, options)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#readdir) lists file names.\n        * async [`readFile(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#readFile) read the file contents.\n        * async [`rmdir(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#rmdir) removes the directory.\n        * async [`stat(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#stat) returns properties of Google Drive files.\n        * async [`unlink(path)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#unlink) removes the file (without moving to the trash-box).\n        * async [`writeFile(path, mimeType, data)`](https://takamin.github.io/gdrive-fs/jsdoc/Gdfs#writeFile) writes data to the file.\n* Class [Gdfs.Path](https://takamin.github.io/gdrive-fs/jsdoc/GdfsPath.html) - as representation of path for the Google Drive files.\n* Class [Gdfs.Ui](https://takamin.github.io/gdrive-fs/jsdoc/GdfsUi.html)(alpha) - A class supporting to create UI.\n\nINSTALL\n-------\n\nTo install, use npm for your project.\n\n```bash\n$ npm install --save gdrive-fs\n```\n\nUSING WITH BUNDLER\n------------------\n\nIf you are using some bundler, you can just import this module and use.\n\n```javascript\nconst Gdfs = require(\"gdrive-fs\");\nGdfs.loadApi(\n.\n.\n.\n```\n\nUSING WITHOUT BUNDLER\n--------------------\n\nIf you do not use any bundler, the following built files are available to include by SCRIPT tag.\n\n* `node_module/gdrive-fs/build/grive-fs.min.js`\n* `node_module/gdrive-fs/build/grive-fs.js`\n\n```xml\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n...\n\u003cscript src=\"\u003cpath-to-gdrive-fs\u003e/build/gdrive-fs.min.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\nBUILD DISTRIBUTIONS\n------------------\n\n```bash\n$ npm run release\n```\n\nLICENSE\n-------\n\nThis module published under [MIT LICENSE](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakamin%2Fgdrive-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakamin%2Fgdrive-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakamin%2Fgdrive-fs/lists"}