@toba/google-drive
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

npm package Build Status Code style Dependencies DevDependencies codecov

Usage

yarn add @toba/google-drive
const config: ClientConfig = {
   apiKey: process.env['GOOGLE_DRIVE_KEY'],
   folderID: 'some folder ID',
   useCache: false,
   cacheSize: 0,
   auth: {
      clientID: process.env['GOOGLE_CLIENT_ID'],
      secret: process.env['GOOGLE_SECRET'],
      callback: 'http://localhost/auth/google',
      token: {
         type: null,
         access: process.env['GOOGLE_ACCESS_TOKEN'],
         accessExpiration: null as Date,
         refresh: process.env['GOOGLE_REFRESH_TOKEN']
      }
   } as AuthConfig
};
const client = new Client(config);
const text = await client.readFileWithName('myfile.txt');

Readme

Keywords

none

Package Sidebar

Install

npm i @toba/google-drive

Weekly Downloads

0

Version

1.8.0

License

MIT

Unpacked Size

32.1 kB

Total Files

15

Last publish

Collaborators

  • jason-abbott