Code Monkey home page Code Monkey logo

convert-to-google-doc's Introduction

convert-to-google-doc

Nifty nodejs script to convert office documents to Google Docs, and place a shortcut in the same folder. Built to work as a convenient context menu item in Windows.

Points to note

  • Conversion Works with .doc,.docx,.xls,.xlsx,.csv,.ppt,.pptx and .txt files. All other files are uploaded as is.
  • Works best when you have a single chrome profile on your desktop. With multiple profiles, you may see some access issues, based on which profile was the last one accessed.
  • The documents are uploaded to a folder by the name GConvert under the root folder. Gets created if it doesn't exist already.
  • I did see the shortcut being created incorrectly on some machines. If that happens you may have to hardcode the full path to chrome.exe in the script.
  • Install Google Docs, Google Sheets and Google Slides chrome extensions for offline access.
  • Haven't tested this with really large files yet. If you want that supported, let me know.

Steps to get the script running

  1. Clone the repo and run npm install to install the dependencies.
  2. Make sure chrome.exe is in your system path.
  3. Run the command node theScript.js "[Path to word or excel file]"
  4. Follow on-screen instructions for the first run to authenticate and authorize the application.
  5. You should see your converted document open up, and a shortcut appear in the same folder.

To add a context menu item

  • Follow the instructions here
  • Use this as the command. Make sure you include the quotes as is: "[full path to node.exe]" "[full path to the script]" "%1"

convert-to-google-doc's People

Contributors

surajp avatar vertexcs-suraj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.