Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sorbits/googlescript-markdowntablefive
Google Apps Script implementation of the MarkdownTableMaker object.
https://github.com/sorbits/googlescript-markdowntablefive
Last synced: 2 days ago
JSON representation
Google Apps Script implementation of the MarkdownTableMaker object.
- Host: GitHub
- URL: https://github.com/sorbits/googlescript-markdowntablefive
- Owner: sorbits
- License: unlicense
- Created: 2017-06-20T10:04:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T14:10:35.000Z (about 7 years ago)
- Last Synced: 2024-11-10T13:47:41.347Z (2 months ago)
- Language: JavaScript
- Homepage: https://github.com/pffy/googledocs-addon-markdowntablefive
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# googlescript-markdowntablefive
### SYNOPSIS
```
+ MarkdownTableMaker();
+ toString() : string+ getMarkdown() : string
+ getRange() : Range+ setRange(Range) : MarkdownTableMaker
+ setSheetAsRange : MarkdownTableMaker```
### DEMO
```javascript
function demo() {
// -- SIMPLE -- //
// builds object, selects entire sheet, crops data
// builds markdown table
var mtm = MarkdownTableMaker();mtm.setSheetAsRange();
// prints markdown table
Logger.log('' + mtm);// -- A LITTLE MORE FUN -- //
// selects user-specified range
var range1 = SpreadsheetApp.getActive().getRange('B8:D19');// set input range, evaluates input range, crops data (if needed)
// builds new table with bounded data
mtm.setRange(range1);// prints new markdown table
Logger.log('' + mtm);// -- EVEN MORE FUN -- //
// selects user-specified range
var range2 = SpreadsheetApp.getActive().getActiveRange();// set input range, evaluates input range, crops data (if needed)
// builds new table with bounded data
mtm.setRange(range2);// prints new markdown table
Logger.log('' + mtm);}
```