1.0.0 • Published 6 years ago

googledoc-to-json v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

googledoc-to-json

Node.js library to read a Google Drive Doc and convert to JSON (via ArchieML)

This is a work-in-progress.

Install

npm install googledoc-to-json --save

Examples

CLI

$ npm install -g googledoc-to-json
$ googledoc-to-json <doc-id> -c .gtokens.json -o output.json

API

const GoogleDocToJSON = require('googledoc-to-json');
const config = require('./config.json'); // see 'Getting Credentials' below
const gDocToJSON = new GoogleDocToJSON(config);

const options = {
    fileId: '1gTERIVPV_0yoMXc6mlBtBpNvaoH5pIU2IC-75V_Qcas',
    oAuthTokens: config.oAuthTokens
};

gDocToJSON.getArchieML(options, function (err, aml) {
    console.log('## ArchieML output', err, aml);
});

Getting credentials

  1. cp .gtokens.example.json .gtokens.json
  2. Run the amazing Google-Tokens
  3. Populate .gtokens.json with appropriate values

Todos:

  • Add Mocha tests
1.0.0

6 years ago

0.5.1

6 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago