0.0.1 • Published 10 years ago
indec v0.0.1
INDEC
Google Spreadsheet to JSON.
Usage
import indec from 'indec';
Indec('0AjAPaAU9MeLFdHUxTlJiVVRYNGRJQnRmSnQwTlpoUXc', (error, data) => console.log(data));Getting the spreadsheet key:
- In Google Drive, go to the File menu and pick Publish to the web, then click Start publishing. A URL will appear, something like https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE&output=html
- The
keyis the part of the url afterkey=and before the next&. You'll feedIndecwith that spreadsheet key.
API
Indec#(key, callback)
Fetch data from the google drive spreadsheet given by the key and return as JSON.
event- The name of the event you want to add.listener- Listener you want to add from given event.
Indec('0AjAPaAU9MeLFdHUxTlJiVVRYNGRJQnRmSnQwTlpoUXc', (error, data) => console.log(data));Installation
$ npm install indecLicense
MIT license
Credits
Tabletop, because this module is just a simplification for Tabletop.
0.0.1
10 years ago