Skip to content

Google Apps Script to convert Office and Google Documents

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
license-config.json
Notifications You must be signed in to change notification settings

miguelandres/gdrive_to_office

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert Google Docs/Slides/Sheets to Office

Build and test clasp

This is a Google Apps Script script written in TypeScript using clasp that allows the user to convert all Google Docs/Slides/Sheets into Microsoft Office formats

I plan to add logic for conversion in the opposite direction but it has not been a priority.

Caution

By nature this is a risky script to run. I have taken precautions to minimize the dangerous operations but, run it at your own risk and review the code.

Risk Minimization

  • The script will only create copies of documents in directories you own.
  • The script will only create an office version of your document if there is no office file with the same name that has a newer timestamp.

Development

Make sure you enable the Google Apps Script API for your Google Account.

# Install clasp
npm install -g @google/clasp

# Login into your google account with clasp
clasp login

Setting up your own Google script

For anyone other than the original author, please remove the .clasp-dev.json and .clasp-prod.json files and initialize them again using clasp create.

This clasp configuration is set to my own instance of the script on my Google account to which you likely have no access.

Therefore run the following commands before doing anything

rm .clasp.json
# Create a new standalone script in your account
clasp create

Run Lint

npm run lint

Run Tests

npm run test

Deploy

npm run deploy

npm run deploy:prod

About

Google Apps Script to convert Office and Google Documents

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
license-config.json

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •