Skip to content

Commit 94a605f

Browse files
committed
Update README.md
Add introduction, features.
1 parent b35e9ed commit 94a605f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,39 @@
22

33
# google-spreadsheets-parser
44
Simple Google Spreadsheets parser for JavaScript
5+
6+
## Introduction
7+
8+
1. Create new Google Spreadsheet
9+
10+
![intro-1](https://raw.githubusercontent.com/wiki/TanakaYutaro/google-spreadsheets-parser/img/intro-1.png)
11+
12+
13+
2. Publish spreadsheet
14+
15+
![intro-2](https://raw.githubusercontent.com/wiki/TanakaYutaro/google-spreadsheets-parser/img/intro-2.png)
16+
17+
You can show following tables from [published url](https://docs.google.com/spreadsheets/d/1vyPu1EtzU1DvGXfthjrR-blJ8mGe75TL4BFNWtFMm0I/pubhtml)
18+
19+
![intro-3](https://raw.githubusercontent.com/wiki/TanakaYutaro/google-spreadsheets-parser/img/intro-3.png)
20+
21+
3. Import googleSpreadsheetsParser.js in header
22+
23+
```html
24+
<script type="text/javascript" src="/path/to/googleSpreadsheetsParser.js"></script>
25+
```
26+
27+
4. Get data
28+
29+
```javascript
30+
var gss = new GoogleSpreadsheetsParser(publishedUrl, true);
31+
32+
console.log(gss.titles); // ["ID", "Name", "Age"]
33+
console.log(gss.contents); // [Array[3], Array[3], Array[3], Array[3], Array[3]]
34+
console.log(gss.contents[2][1]); // Doug
35+
```
36+
37+
## Features
38+
39+
* `.titles` : Table titles array in the frst row.
40+
* `.contents` : Table data 2d array in the second row later.

0 commit comments

Comments
 (0)